[issue37076] _thread.start_new_thread(): call sys.unraisablehook() to handle uncaught exceptions

Serhiy Storchaka report at bugs.python.org
Tue May 28 16:05:12 EDT 2019


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

> If threading.Thread.run() is correctly written, it should not raise an exception.

Since the error handling for threading.Thread.run() is written on Python there are many opportunities to get an exception in error handling: KeyboardInterrupt, MemoryError and, at the shutdown stage, maybe NameError, AttributeError or TypeError.

----------
nosy: +serhiy.storchaka

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


More information about the Python-bugs-list mailing list