Message383270
Modules are already cleared in the reverse order.
Clearing module attributes in the reverse order looks interesting. It increases chance that modules and other imported names which can be used in __del__ will be deleted after executing __del__ if the module has references to an instance of a class defined in the same module. And if the class was defined in other module, it will be deleted later because dependencies are cleared after depended modules.
On other hand, private attributes are currently removed first, so we perhaps need to change it to make the strategy working. |
|
Date |
User |
Action |
Args |
2020-12-17 22:00:23 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner |
2020-12-17 22:00:23 | serhiy.storchaka | set | messageid: <1608242423.36.0.390791063865.issue42671@roundup.psfhosted.org> |
2020-12-17 22:00:23 | serhiy.storchaka | link | issue42671 messages |
2020-12-17 22:00:23 | serhiy.storchaka | create | |
|