Arnaud Delobelle wrote:
Dave Angel <da...@ieee.org> writes:

Python allows multiple assignments in the same statement, but they're
all to the same object.

Unless they are to different objects:

    a, b = 1, 2

You're right, of course. I was referring to the multiple '=' form, and my statement was too general to be correct.

a = b = 42       is legal
a = (b=42) + 1      is not

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to