[issue1635741] Py_Finalize() doesn't clear all Python objects at exit
STINNER Victor
report at bugs.python.org
Tue Nov 3 11:42:45 EST 2020
STINNER Victor <vstinner at python.org> added the comment:
In PR 23131, I added a comment to _PyInterpreter_Clear() to remind me that trying to destroy a Python type after the last GC collection doesn't work as expected:
// All Python types must be destroyed before the last GC collection. Python
// types create a reference cycle to themselves in their in their
// PyTypeObject.tp_mro member (the tuple contains the type).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue1635741>
_______________________________________
More information about the Python-bugs-list
mailing list