[Python-checkins] gh-101578: mention in what's new in 3.12 that exceptions are now normalized before stored (#102702)

iritkatriel webhook-mailer at python.org
Tue Mar 14 18:38:23 EDT 2023


https://github.com/python/cpython/commit/152292b98fd52f8b3db252e5609d6a605a11cb57
commit: 152292b98fd52f8b3db252e5609d6a605a11cb57
branch: main
author: Irit Katriel <1055913+iritkatriel at users.noreply.github.com>
committer: iritkatriel <1055913+iritkatriel at users.noreply.github.com>
date: 2023-03-14T22:38:15Z
summary:

gh-101578: mention in what's new in 3.12 that exceptions are now normalized before stored (#102702)

files:
M Doc/whatsnew/3.12.rst

diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index 9f33dbc808dd..217ffec1ee10 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 normalize the exception
+  before storing it. (Contributed by Mark Shannon in :gh:`101578`.)
+
 Deprecated
 ----------
 



More information about the Python-checkins mailing list