[issue38392] Ensure that objects entering the GC are valid
Serhiy Storchaka
report at bugs.python.org
Mon Oct 7 07:35:15 EDT 2019
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
It could be possible to do this in backward compatible way. PyObject_GC_Track() could add the object to the list of new objects (all objects are already linked in bi-linked list, so it would need to just move the object to the specified list), and PyObject_GC_NewVar() could check all new objects and clear the list of new objects (just move the head).
I am not sure it is worth to do such complication.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38392>
_______________________________________
More information about the Python-bugs-list
mailing list