Tim Chase <python.l...@tim.thechases.com> wrote:

> There _are_ cases where it's a useful behavior, but they're rare, 
> so I don't advocate getting rid of it.  But it is enough of a 
> beginner gotcha that it really should be in the Python FAQ at 
> www.python.org/doc/faq/general/
> 

That's an excellent idea!

So excellent in fact that it already is:
http://www.python.org/doc/faq/general/#why-are-default-values-shared-between-objects


-- 
Duncan Booth http://kupuguy.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to