Variable Scope 2 -- Thanks for 1.

ian ian at ibygrave.no-ip.org
Fri Jan 9 22:03:54 CET 2004


On Fri, 09 Jan 2004 20:56:26 +0000, JCM wrote:
> Assignment rebinds variables to different objects, so b now holds a
> reference to the list created by the expression [].

As assignment binds but doesn't copy, you might ask

http://www.python.org/doc/faq/programming.html#how-do-i-copy-an-object-in-python

--IAN




More information about the Python-list mailing list