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 supernova_hq
Recipients supernova_hq
Date 2008-09-02.00:54:58
SpamBayes Score 5.06889e-05
Marked as misclassified No
Message-id <1220316901.15.0.690452835039.issue3755@psf.upfronthosting.co.za>
In-reply-to
Content
I have located a bug where every instance of an identical class (or a
class that extends it) will use the same copy of any list element
created before __init__.

The only way I have found to fix this is to explicitly empty the list
inside the __init__ function before the list is used.

Please view and run the attached code for the example.
History
Date User Action Args
2008-09-02 00:55:01supernova_hqsetrecipients: + supernova_hq
2008-09-02 00:55:01supernova_hqsetmessageid: <1220316901.15.0.690452835039.issue3755@psf.upfronthosting.co.za>
2008-09-02 00:55:00supernova_hqlinkissue3755 messages
2008-09-02 00:54:59supernova_hqcreate