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 Mark.Shannon, christian.heimes, jdemeyer, lukasz.langa, methane, miss-islington, nascheme, pablogsal, petr.viktorin, pitrou, tim.peters, vstinner
Date 2019-09-27.21:16:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1569619007.06.0.49262309865.issue38006@roundup.psfhosted.org>
In-reply-to
Content
> If I understand Victor's test case correctly, the problem is caused if you have an extension type that implements tp_traverse but not tp_clear and that there is also a weakref involved in the trash cycle.

I'm not sure that "implements tp_traverse but not tp_clear" is enough to trigger the issue. It's unclear to me neither if it's a good practice or not to implement tp_clear... Since it seems like implementing tp_clear for functions (func_clear) caused this regression... Or maybe it's very specific to the magic combo: weak references with callback.
History
Date User Action Args
2019-09-27 21:16:47vstinnersetrecipients: + vstinner, tim.peters, nascheme, pitrou, christian.heimes, petr.viktorin, methane, lukasz.langa, Mark.Shannon, jdemeyer, pablogsal, miss-islington
2019-09-27 21:16:47vstinnersetmessageid: <1569619007.06.0.49262309865.issue38006@roundup.psfhosted.org>
2019-09-27 21:16:47vstinnerlinkissue38006 messages
2019-09-27 21:16:46vstinnercreate