This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients corona10, pablogsal, serhiy.storchaka, shihai1991, tim.peters, vstinner
Date 2020-04-07.17:48:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586281688.26.0.0176945304853.issue40217@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-04-07 17:48:08serhiy.storchakasetrecipients: + serhiy.storchaka, tim.peters, vstinner, corona10, pablogsal, shihai1991
2020-04-07 17:48:08serhiy.storchakasetmessageid: <1586281688.26.0.0176945304853.issue40217@roundup.psfhosted.org>
2020-04-07 17:48:08serhiy.storchakalinkissue40217 messages
2020-04-07 17:48:08serhiy.storchakacreate