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

Fredrik Lundh fredrik at
Sat Aug 23 12:01:07 CEST 2008

Bart van Deenen wrote:

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

> 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.


More information about the Python-list mailing list