]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41435: Add sys._current_exceptions() function (GH-21689)
authorJulien Danjou <julien@danjou.info>
Mon, 2 Nov 2020 14:16:25 +0000 (15:16 +0100)
committerGitHub <noreply@github.com>
Mon, 2 Nov 2020 14:16:25 +0000 (16:16 +0200)
commit64366fa9b3ba71b8a503a8719eff433f4ea49eb9
tree8aa6d76484553d2f29bfe5d03709a86c0abe547f
parent3d86d090dcbbdfdd3e5a5951cab30612d6131222
bpo-41435: Add sys._current_exceptions() function (GH-21689)

This adds a new function named sys._current_exceptions() which is equivalent ot
sys._current_frames() except that it returns the exceptions currently handled
by other threads. It is equivalent to calling sys.exc_info() for each running
thread.
Doc/library/sys.rst
Include/cpython/pystate.h
Lib/test/test_sys.py
Misc/NEWS.d/next/Core and Builtins/2020-08-07-13-42-48.bpo-41435.qPWjJA.rst [new file with mode: 0644]
Python/clinic/sysmodule.c.h
Python/pystate.c
Python/sysmodule.c