This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2019-07-09.10:26:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1562667990.77.0.0421401641462.issue37526@roundup.psfhosted.org>
In-reply-to
Content
bpo-1230540 added threading.excepthook() to handle "uncaught exceptions raised by Thread.run()".

I propose to add support.catch_threading_exception(): context manager to ease catching these exceptions.

Attached PR implements it.
History
Date User Action Args
2019-07-09 10:26:30vstinnersetrecipients: + vstinner
2019-07-09 10:26:30vstinnersetmessageid: <1562667990.77.0.0421401641462.issue37526@roundup.psfhosted.org>
2019-07-09 10:26:30vstinnerlinkissue37526 messages
2019-07-09 10:26:30vstinnercreate