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

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


On Fri, 22 Aug 2008 11:42:03 +0200, Diez B. Roggisch wrote:

> It's amazing. I didn't analyse this properly, but IMHO this issue is the 
> single most asked question (or rather the effects in produces) on this list.
>
> Maybe we should get *really* explicit in
>
> http://docs.python.org/tut/node6.html#SECTION006710000000000000000
>
> and
>
> http://docs.python.org/ref/function.html
>
> Big, red warnings, or some such.

+1

Documenting this should also make it easier to understand
the difference between mutable/immutable objects before one
comes on c.l.py and asks about it.

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



More information about the Python-list mailing list