Message343788
> _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 |
|
| Date |
User |
Action |
Args |
| 2019-05-28 15:16:37 | lazka | set | recipients:
+ lazka, vstinner |
| 2019-05-28 15:16:37 | lazka | set | messageid: <1559056597.66.0.447846473713.issue37076@roundup.psfhosted.org> |
| 2019-05-28 15:16:37 | lazka | link | issue37076 messages |
| 2019-05-28 15:16:37 | lazka | create | |
|