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

Ayaz Ahmed Khan ayaz at dev.slash.null
Thu Mar 8 03:10:54 EST 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