[issue1230540] Add threading.excepthook() to handle uncaught exceptions raised by Thread.run()

STINNER Victor report at bugs.python.org
Tue May 28 06:20:57 EDT 2019


STINNER Victor <vstinner at redhat.com> added the comment:

> If we want to support low-level threads created by start_new_thread() we should call excepthook() from t_bootstrap instead of Thread._bootstrap_inner. Otherwise implementing excepthook() as a Thread method would be more convenient.

I created bpo-37076: "_thread.start_new_thread(): call sys.unraisablehook() to handle uncaught exceptions".

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue1230540>
_______________________________________


More information about the Python-bugs-list mailing list