diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-04-15 18:57:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-15 18:57:47 (GMT) |
commit | 5d421d7342fc0d278c129c05bea7028430e94a4e (patch) | |
tree | c5bb38c41d86c6289dfcb1f7937f2df07305f4d8 /Misc | |
parent | c06a4ffe818feddef3b5083d9746a1c0b82c84ab (diff) | |
download | cpython-5d421d7342fc0d278c129c05bea7028430e94a4e.zip cpython-5d421d7342fc0d278c129c05bea7028430e94a4e.tar.gz cpython-5d421d7342fc0d278c129c05bea7028430e94a4e.tar.bz2 |
gh-90501: Add PyErr_GetHandledException and PyErr_SetHandledException (GH-30531)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/C API/2022-01-11-12-52-37.bpo-46343.JQJWhZ.rst | 5 | ||||
-rw-r--r-- | Misc/stable_abi.txt | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2022-01-11-12-52-37.bpo-46343.JQJWhZ.rst b/Misc/NEWS.d/next/C API/2022-01-11-12-52-37.bpo-46343.JQJWhZ.rst new file mode 100644 index 0000000..1ac8da8 --- /dev/null +++ b/Misc/NEWS.d/next/C API/2022-01-11-12-52-37.bpo-46343.JQJWhZ.rst @@ -0,0 +1,5 @@ +Added :c:func:`PyErr_GetHandledException` and +:c:func:`PyErr_SetHandledException` as simpler alternatives to +:c:func:`PyErr_GetExcInfo` and :c:func:`PyErr_SetExcInfo`. + +They are included in the stable ABI. diff --git a/Misc/stable_abi.txt b/Misc/stable_abi.txt index 4864bf3..66777a6 100644 --- a/Misc/stable_abi.txt +++ b/Misc/stable_abi.txt @@ -2253,3 +2253,8 @@ function PyMemoryView_FromBuffer data Py_Version added 3.11 +function PyErr_GetHandledException + added 3.11 +function PyErr_SetHandledException + added 3.11 + |