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 vstinner
Recipients miss-islington, pablogsal, vstinner
Date 2021-12-09.17:03:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639069389.08.0.94374009748.issue46025@roundup.psfhosted.org>
In-reply-to
Content
For me, the question is why would anyone call atexit.unregister() inside an atexit callback. Is it useful?

atexit._run_exitfuncs() removes all registered callbacks.

Py_Finalize() calls _PyAtExit_Call() which also removes all registered callbacks.
History
Date User Action Args
2021-12-09 17:03:09vstinnersetrecipients: + vstinner, pablogsal, miss-islington
2021-12-09 17:03:09vstinnersetmessageid: <1639069389.08.0.94374009748.issue46025@roundup.psfhosted.org>
2021-12-09 17:03:09vstinnerlinkissue46025 messages
2021-12-09 17:03:09vstinnercreate