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.

Author serhiy.storchaka
Recipients serhiy.storchaka, vstinner
Date 2020-12-17.22:00:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608242423.36.0.390791063865.issue42671@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-12-17 22:00:23serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner
2020-12-17 22:00:23serhiy.storchakasetmessageid: <1608242423.36.0.390791063865.issue42671@roundup.psfhosted.org>
2020-12-17 22:00:23serhiy.storchakalinkissue42671 messages
2020-12-17 22:00:23serhiy.storchakacreate