[issue31095] Checking all tp_dealloc with Py_TPFLAGS_HAVE_GC

INADA Naoki report at bugs.python.org
Tue Aug 1 04:52:02 EDT 2017


INADA Naoki added the comment:

> should the base method which calls tp_dealloc do this?  Maybe can kill all birds with one stone.

It may be possible, but unclear.
Object finalization process is very complicated.

I agree that UnTrack object as soon as refcnt=0, and Track only when
resurrected seems clearer.
But changing such basic object system needs carefully designed by expert.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31095>
_______________________________________


More information about the Python-bugs-list mailing list