En Wed, 07 Mar 2007 23:39:21 -0300, C Barr Leigh <[EMAIL PROTECTED]> escribió:
> Help! Have I found a serious bug?
Not at all! This is by design.
> def testPersistence(anarg,twooption=[]):
> #print anarg
> if not twooption:
> twooption.append('Set within test for '+anarg)
See
http://effbot.org/pyfaq/why-are-default-values-shared-between-objects.htm
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
