Message277151
The most likely relevant difference here is that Python 3.4+ no longer forcibly break cycles through the module globals when the module is deallocated: https://docs.python.org/dev/whatsnew/3.4.html#whatsnew-pep-442
Due to the implicit cycles created between function definitions and their global namespace via the __globals__ attribute on the function, this means that embedding applications will need to explicitly run a GC collection cycle after deleting a module in order to fully finalise it. |
|
Date |
User |
Action |
Args |
2016-09-21 14:58:24 | ncoghlan | set | recipients:
+ ncoghlan, brett.cannon, eric.snow, serhiy.storchaka, josh.r, Jack Liu |
2016-09-21 14:58:24 | ncoghlan | set | messageid: <1474469904.37.0.720543704688.issue28202@psf.upfronthosting.co.za> |
2016-09-21 14:58:24 | ncoghlan | link | issue28202 messages |
2016-09-21 14:58:24 | ncoghlan | create | |
|