Message343788
| Author | lazka |
|---|---|
| Recipients | lazka, vstinner |
| Date | 2019-05-28.15:16:37 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1559056597.66.0.447846473713.issue37076@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
> _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 |
|
| History | |||
|---|---|---|---|
| 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 | |