This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author trott
Recipients trott
Date 2008-10-10.09:23:42
SpamBayes Score 0.00014758915
Marked as misclassified No
Message-id <1223630684.29.0.595274599249.issue4098@psf.upfronthosting.co.za>
In-reply-to
Content
The attached file produced the following result:

______________________
trott$ python2.5 p6.py
[]
[1234]
______________________

I expected both times the empty list since the print
statement prints just a defaulted parameter ("e") which
was defaulted to an empty list literal ("[]") and never set
by supplying an actual class parameter.

The object property "entries" appears to be shared by
both instances. Why?
History
Date User Action Args
2008-10-10 09:24:44trottsetrecipients: + trott
2008-10-10 09:24:44trottsetmessageid: <1223630684.29.0.595274599249.issue4098@psf.upfronthosting.co.za>
2008-10-10 09:23:43trottlinkissue4098 messages
2008-10-10 09:23:43trottcreate