Kristján Valur Jónsson <krist...@ccpgames.com> added the comment:

__del__ methods are never invoked from GC.  All objects that have finalizers, 
and all objects reachable from them _must_ be put in gc.garbage.
If I'm not mistaken, this is a fundamental rule of python's gc module and it is 
not because of the unknown order of finalizers as some people seem to think, 
but because the state of the interpreter during the collection phase is so 
fragile, with objects being linked up in various lists, and so on, that it 
isn't permissable to run any dynamic code.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8212>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to