[issue1230540] sys.excepthook doesn't work in threads

Antoine Pitrou report at bugs.python.org
Sat May 25 17:11:53 EDT 2019


Antoine Pitrou <pitrou at free.fr> added the comment:

Sorry, I had overlooked the issue with global variables at shutdown.  Though that issue only occurs with daemonic threads, since non-daemonic threads are joined before global variables are cleared.

In any case, I think the namedtuple / structseq solution is elegant, because we can add additional information later (the user must only be careful not to use tuple unpacking).

----------

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


More information about the Python-bugs-list mailing list