[issue42972] [C API] Heap types (PyType_FromSpec) must fully implement the GC protocol

STINNER Victor report at bugs.python.org
Fri May 28 10:01:56 EDT 2021


STINNER Victor <vstinner at python.org> added the comment:

I'm not fully satified by the overlapped_dealloc() implementation neither. There is an unpleasant code path for Windows XP but it's no longer needed in Python 3.11. I would prefer to always call PyObject_GC_UnTrack() and call it earlier.

See the dicsussion in the PR:
https://github.com/python/cpython/pull/26381

But it can be modified later.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42972>
_______________________________________


More information about the Python-bugs-list mailing list