[issue41435] Allow to retrieve ongoing exception handled by every threads

2020-11-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41435] Allow to retrieve ongoing exception handled by every threads

2020-11-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 64366fa9b3ba71b8a503a8719eff433f4ea49eb9 by Julien Danjou in branch 'master': bpo-41435: Add sys._current_exceptions() function (GH-21689) https://github.com/python/cpython/commit/64366fa9b3ba71b8a503a8719eff433f4ea49eb9 --

[issue41435] Allow to retrieve ongoing exception handled by every threads

2020-08-03 Thread Julien Danjou
Julien Danjou added the comment: Adding to the thread object might be a good idea, but it does not work if you ever start threads with the low-level `_thread` API. It's also a different design from the existing `sys._current_frames`. Adding it on top of a frame is interesting though. I think

[issue41435] Allow to retrieve ongoing exception handled by every threads

2020-08-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Would not be more useful to add a method to the Thread or frame object to obtain the topmost handled exception? Then you could iterate all threads or frames and obtain exceptions together with other useful information. Note also that it omits exceptions in

[issue41435] Allow to retrieve ongoing exception handled by every threads

2020-07-30 Thread Julien Danjou
Change by Julien Danjou : -- keywords: +patch pull_requests: +20832 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21689 ___ Python tracker ___ __

[issue41435] Allow to retrieve ongoing exception handled by every threads

2020-07-29 Thread Julien Danjou
New submission from Julien Danjou : 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 curren