➜

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.

作者 serhiy.storchaka
收信人 serhiy.storchaka, vstinner
日期 2020-12-17.22:00:23
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1608242423.36.0.390791063865.issue42671@roundup.psfhosted.org>
In-reply-to
内容
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.
历史
日期 用户 动作 参数
2020-12-17 22:00:23serhiy.storchaka修改recipients: + serhiy.storchaka, vstinner
2020-12-17 22:00:23serhiy.storchaka修改messageid: <1608242423.36.0.390791063865.issue42671@roundup.psfhosted.org>
2020-12-17 22:00:23serhiy.storchaka链接issue42671 messages
2020-12-17 22:00:23serhiy.storchaka创建