Mark Shannon <m...@hotpy.org> added the comment: Absolutely. subtype_dealloc deals with deallocation of subtype *instances*, not the types themselves.
> Maybe we can try and explore the reference graph again? This sort of thing is one of the reasons that the cycle GC does not call any finalisers. Attempting to do finalisation during deallocation is asking for trouble, and it seems to be pervasive in CPython. I'm surprised this sort of bug is not more common. But subtype_dealloc deals with instances not classes, and deallocation of instances may happen many millions of times. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12149> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com