Bug in python!? persistent value of an optional parameter in function!

Ayaz Ahmed Khan ayaz at dev.slash.null
Thu Mar 8 09:10:54 CET 2007


"Gabriel Genellina" typed:
> 
> See  
> http://effbot.org/pyfaq/why-are-default-values-shared-between-objects.htm

Thanks for the link, Gabriel. I didn't know about this.

-- 
Ayaz Ahmed Khan

Falling in love makes smoking pot all day look like the ultimate in
restraint.
                -- Dave Sim, author of "Cerebus".



More information about the Python-list mailing list