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 pitrou
Recipients pitrou, tim.peters
Date 2010-08-04.10:25:14
SpamBayes Score 1.9760178e-06
Marked as misclassified No
Message-id <1280917516.21.0.771660979533.issue9505@psf.upfronthosting.co.za>
In-reply-to
Content
User code is currently allowed to rebind the gc.garbage attribute, while the "real" garbage list in the GC module actually remains the same. This is counter-intuitive and allows to write apparently correct code such as:

    gc.garbage = []

while it should really be:

    gc.garbage[:] = []
History
Date User Action Args
2010-08-04 10:25:16pitrousetrecipients: + pitrou, tim.peters
2010-08-04 10:25:16pitrousetmessageid: <1280917516.21.0.771660979533.issue9505@psf.upfronthosting.co.za>
2010-08-04 10:25:14pitroulinkissue9505 messages
2010-08-04 10:25:14pitroucreate