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

Wojtek Walczak gminick at bzt.bzt
Fri Aug 22 05:27:01 EDT 2008


On Fri, 22 Aug 2008 11:13:52 +0200, Bart van Deenen wrote:

> I've stumbled onto a python behavior that I don't understand at all.
...
> Does anyone have any pointers to the language documentation where this behavior is described?

Yes, it's documented in FAQ:
http://www.python.org/doc/faq/general/
Question 4.22.

-- 
Regards,
Wojtek Walczak,
http://tosh.pl/gminick/



More information about the Python-list mailing list