bpo-42639: atexit now logs callbacks exceptions (GH-23771)
At Python exit, if a callback registered with atexit.register() fails, its exception is now logged. Previously, only some exceptions were logged, and the last exception was always silently ignored. Add _PyAtExit_Call() function and remove PyInterpreterState.atexit_func member. call_py_exitfuncs() now calls directly _PyAtExit_Call(). The atexit module must now always be built as a built-in module.
V
Victor Stinner committed
357704c9f2375f29ed5b3a93adac086fa714538d
Parent: 83d5204
Committed by GitHub <noreply@github.com>
on 12/14/2020, 10:07:54 PM