Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Recently many static allocated types were converted to heap allocated types 
(using PyType_FromSpec). Now you need to add Py_VISIT(Py_TYPE(self)) in all 
corresponding tp_visit implementations.

And since even official example for heap allocated types do not contain it (and 
it was not needed before 3.9), I am sure that all existing code do not contain 
it.

We cannot change all user code, so we should change the interpreter code so 
that it will work correctly with existing user code.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40217>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to