Message355199
> 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. |
|
Date |
User |
Action |
Args |
2019-10-23 00:29:57 | vstinner | set | recipients:
+ vstinner, brett.cannon, ncoghlan, pitrou, eric.snow, serhiy.storchaka, josh.r, Jack Liu |
2019-10-23 00:29:57 | vstinner | set | messageid: <1571790597.65.0.444435630429.issue28202@roundup.psfhosted.org> |
2019-10-23 00:29:57 | vstinner | link | issue28202 messages |
2019-10-23 00:29:57 | vstinner | create | |
|