Christoph Reiter <[email protected]> added the comment:
> _thread.start_new_thread() calls none of these hooks, but directly logs the
> exception.
It calls sys.excepthook() currently:
import _thread
import threading
import sys
done = False
def hook(*args):
global done
print(threading.current_thread())
done = True
sys.excepthook = hook
def worker():
raise Exception
_thread.start_new_thread(worker, tuple())
while not done:
pass
----------
nosy: +lazka
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue37076>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com