summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2022-01-13 12:35:58 (GMT)
committerGitHub <noreply@github.com>2022-01-13 12:35:58 (GMT)
commitc590b581bba517f81ced2e6f531ccc9e2e22eab5 (patch)
treef3c49f2fa4a5eb43d403be8d8a811ebfc11f33fe /Doc/whatsnew
parent9c2ebb906d1c68c3d571b100c92ceb08805b94cd (diff)
downloadcpython-c590b581bba517f81ced2e6f531ccc9e2e22eab5.zip
cpython-c590b581bba517f81ced2e6f531ccc9e2e22eab5.tar.gz
cpython-c590b581bba517f81ced2e6f531ccc9e2e22eab5.tar.bz2
bpo-46328: Add sys.exception() (GH-30514)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.11.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index 7224361..28ac57e 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -305,6 +305,9 @@ sys
the results of subsequent calls to :func:`exc_info`.
(Contributed by Irit Katriel in :issue:`45711`.)
+* Add :func:`sys.exception` which returns the active exception instance
+ (equivalent to ``sys.exc_info()[1]``).
+ (Contributed by Irit Katriel in :issue:`46328`.)
threading
---------