Tim Peters <t...@python.org> added the comment:

No problem!  If you are trying to swap the values in two variables `x` and `y`, 
in most languages that's spelled:

    temp = x
    x = y
    y = temp

and that works in Python too.  But in Python it's more common to do it with a 
one-liner:

    x, y = y, x

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39338>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to