Local variables persist in functions?

Duncan Booth duncan.booth at invalid.invalid
Fri Nov 24 03:18:48 EST 2006


120psi at gmail.com wrote:

> 
> Considering the default value of _curList, these statements should be
> identical.  Any pointers?  Did I miss something in the python reference
> manual?  (running 2.4.3, fyi)

See the FAQ:

http://www.python.org/doc/faq/general.html#why-are-default-values-shared-between-objects



More information about the Python-list mailing list