def X(l=[]): weirdness. Python bug ?

Fredrik Lundh fredrik at pythonware.com
Sat Aug 23 06:01:07 EDT 2008


Bart van Deenen wrote:

> I've stumbled onto a python behavior that I don't understand at all.

http://effbot.org/zone/default-values.htm

> Is this correct behavior or is it a Python bug?

Python's been out there for nearly 20 years.  I think you safely can 
assume that if this really was a bug, someone else would have found it 
by now.

</F>




More information about the Python-list mailing list