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 Arfrever, msmhrt, ned.deily, pitrou, python-dev, serhiy.storchaka, vstinner
Date 2016-03-24.23:37:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1458862656.61.0.263711871648.issue21925@psf.upfronthosting.co.za>
In-reply-to
Content
I fixed warnings.formatwarning(). I don't expect the code to be perfect (Python shutdown process is complex and fragile), but the fix is quite simple and it's enough to fix the bug described in the initial message. I even added an unit test for it.

I didn't try to force when the __main__ module is unloaded, I didn't see any consensus around that.

Thanks for the bug report, it's now fixed ;-) Sorry for the delay. We had to fix a million of other subtle issues to make the Python shutdown process and the stdlib stronger.
History
Date User Action Args
2016-03-24 23:37:36vstinnersetrecipients: + vstinner, pitrou, ned.deily, Arfrever, python-dev, serhiy.storchaka, msmhrt
2016-03-24 23:37:36vstinnersetmessageid: <1458862656.61.0.263711871648.issue21925@psf.upfronthosting.co.za>
2016-03-24 23:37:36vstinnerlinkissue21925 messages
2016-03-24 23:37:36vstinnercreate