STINNER Victor added the comment:

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.

----------
resolution:  -> fixed
status: open -> closed
versions: +Python 3.6 -Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21925>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to