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 Jack Liu, brett.cannon, eric.snow, josh.r, ncoghlan, pitrou, serhiy.storchaka, vstinner
Date 2019-10-23.00:29:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1571790597.65.0.444435630429.issue28202@roundup.psfhosted.org>
In-reply-to
Content
> The problem is resolved if call PyGC_Collect() after PyDict_DelItemString(). Is it expected to call PyGC_Collect() here?

Yeah sadly, to handle such reference cycles, you have to trigger an explicit garbage collection.

It doesn't sound like a bug to me.

Python 3.4 made this way better with PEP 442.

Anyway, that's an old issue with no activity since 2016. I close it.
History
Date User Action Args
2019-10-23 00:29:57vstinnersetrecipients: + vstinner, brett.cannon, ncoghlan, pitrou, eric.snow, serhiy.storchaka, josh.r, Jack Liu
2019-10-23 00:29:57vstinnersetmessageid: <1571790597.65.0.444435630429.issue28202@roundup.psfhosted.org>
2019-10-23 00:29:57vstinnerlinkissue28202 messages
2019-10-23 00:29:57vstinnercreate