New submission from Antoine Pitrou <pit...@free.fr>: 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[:] = [] ---------- components: Library (Lib) messages: 112785 nosy: pitrou, tim_one priority: normal severity: normal stage: needs patch status: open title: User code should not be able to rebind gc.garbage type: behavior versions: Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9505> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com