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 vstinner
Recipients Jim Fasarakis-Hilliard, amaury.forgeotdarc, christian.heimes, corona10, eric.snow, erlendaasland, isoschiz, koubaa, kylotan, lukasz.langa, miss-islington, pconnell, petr.viktorin, phsilva, python-dev, santoso.wijaya, shihai1991, tlesher, vstinner, ysj.ray
Date 2020-11-03.16:42:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1604421765.48.0.778167860182.issue1635741@roundup.psfhosted.org>
In-reply-to
Content
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).
History
Date User Action Args
2020-11-03 16:42:45vstinnersetrecipients: + vstinner, amaury.forgeotdarc, kylotan, christian.heimes, tlesher, phsilva, petr.viktorin, ysj.ray, santoso.wijaya, lukasz.langa, python-dev, eric.snow, pconnell, isoschiz, Jim Fasarakis-Hilliard, corona10, miss-islington, shihai1991, erlendaasland, koubaa
2020-11-03 16:42:45vstinnersetmessageid: <1604421765.48.0.778167860182.issue1635741@roundup.psfhosted.org>
2020-11-03 16:42:45vstinnerlinkissue1635741 messages
2020-11-03 16:42:45vstinnercreate