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 rhettinger
Recipients eric.snow, iritkatriel, leezu, miss-islington, pablogsal, pitrou, rhettinger, tim.peters, vstinner
Date 2021-09-20.05:51:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1632117074.47.0.456490452061.issue39778@roundup.psfhosted.org>
In-reply-to
Content
I'm thinking that edit to tp_dealloc was incorrect.  The PyClear call should have been replaced (not removed) with the pattern shown in the C APIs docs ( https://docs.python.org/3/extending/newtypes.html?highlight=pyobject_clearw#weak-reference-support ):

    if (self->weakreflist != NULL)
        PyObject_ClearWeakRefs((PyObject *) self);
History
Date User Action Args
2021-09-20 05:51:14rhettingersetrecipients: + rhettinger, tim.peters, pitrou, vstinner, eric.snow, leezu, pablogsal, miss-islington, iritkatriel
2021-09-20 05:51:14rhettingersetmessageid: <1632117074.47.0.456490452061.issue39778@roundup.psfhosted.org>
2021-09-20 05:51:14rhettingerlinkissue39778 messages
2021-09-20 05:51:14rhettingercreate