strange behavor....

Mark Wooding mdw at distorted.org.uk
Sat Nov 13 16:42:03 EST 2010


Dave Angel <davea at ieee.org> writes:

> No, an (=) assignment is always an assignment.  

No.  In `foo[0] = bar' it's a method call in disguise.

> It changes the item on the left hand side to refer to a new object.

Not necessarily.  It could do anything at all depending on the type of
the recipient object.

-- [mdw]



More information about the Python-list mailing list