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:37lazkasetrecipients: + lazka, vstinner
2019-05-28 15:16:37lazkasetmessageid: <1559056597.66.0.447846473713.issue37076@roundup.psfhosted.org>
2019-05-28 15:16:37lazkalinkissue37076 messages
2019-05-28 15:16:37lazkacreate