From e98b64876811cae62418b1babb6caf6f2e4c5dc4 Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Tue, 14 Mar 2023 20:05:17 +0000 Subject: [PATCH 1/2] gh-101578: mention in what's new in 3.12 that exceptions are now normalized before stored --- Doc/whatsnew/3.12.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 9f33dbc808ddc0..9effaaf522d8e2 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -982,6 +982,11 @@ Porting to Python 3.12 effects, these side effects are no longer duplicated. (Contributed by Victor Stinner in :gh:`98724`.) +* The interpreter's error indicator is now always normalized. This means + that :c:func:`PyErr_SetObject`, :c:func:`PyErr_SetString` and the other + functions that set the error indicator now need to normalize the exception + before storing it. (Contributed by Mark Shannon in :gh:`101578`.) + Deprecated ---------- From 81e706ee2dc64f8f3801560c797ed5b70b224e91 Mon Sep 17 00:00:00 2001 From: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> Date: Tue, 14 Mar 2023 22:27:45 +0000 Subject: [PATCH 2/2] remove "need to" Co-authored-by: Carl Meyer --- Doc/whatsnew/3.12.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 9effaaf522d8e2..217ffec1ee1007 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -984,7 +984,7 @@ Porting to Python 3.12 * The interpreter's error indicator is now always normalized. This means that :c:func:`PyErr_SetObject`, :c:func:`PyErr_SetString` and the other - functions that set the error indicator now need to normalize the exception + functions that set the error indicator now normalize the exception before storing it. (Contributed by Mark Shannon in :gh:`101578`.) Deprecated