STINNER Victor <vstin...@python.org> added the comment:

Ok, the initial issue is now fixed. It's possible to have more than one atexit 
module instance, registered callbacks in one or the other module are all called 
as expected. I also wrote an unit test for that.

I also took the opportunity of this issue to modernize the C code base, fix a 
bug in test_atexit (no longer clear atexit callbacks, run tests in 
subprocesses), and enhance atexit._run_exitfuncs(): log all callback exceptions 
using sys.unraisablehook so it's possible to catch them using the hook.

----------
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

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

Reply via email to