Message254616
Yes, python2 shutdown has this problem: modules and their attributes are set to None during interpreter shutdown. Things are much better in python3. If you want to avoid the error messages, finalize the objects explicitly (making sure to break gc cycles) before the end of your program, or keep explicit references to the objects you need during __del__ (eg: os_path = os.path in the global scope of your module).
As for your last comment, you are correct, the GC cleanup order is not deterministic. |
|
Date |
User |
Action |
Args |
2015-11-13 19:41:26 | r.david.murray | set | recipients:
+ r.david.murray, Terry Garyet |
2015-11-13 19:41:26 | r.david.murray | set | messageid: <1447443686.75.0.623680718477.issue25619@psf.upfronthosting.co.za> |
2015-11-13 19:41:26 | r.david.murray | link | issue25619 messages |
2015-11-13 19:41:26 | r.david.murray | create | |
|