New submission from Julien Danjou <jul...@danjou.info>:

In order to do statistical profiling on raised exception, having the ability to 
poll all the running threads for their currently handled exception would be 
fantastic.

There is an exposed function named `sys._current_frames()` that allows to list 
the current frame handled by CPython. Having an equivalent for 
`sys._current_exceptions()` that would return the content of `sys.exc_info()` 
for each running thread would solve the issue.

----------
components: Interpreter Core
messages: 374575
nosy: jd
priority: normal
severity: normal
status: open
title: Allow to retrieve ongoing exception handled by every threads
type: enhancement
versions: Python 3.10

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41435>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to