summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.12.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst
index 03b1f97..a398cd9 100644
--- a/Doc/whatsnew/3.12.rst
+++ b/Doc/whatsnew/3.12.rst
@@ -944,6 +944,10 @@ New Features
the :attr:`~BaseException.args` passed to the exception's constructor.
(Contributed by Mark Shannon in :gh:`101578`.)
+* Add :c:func:`PyErr_DisplayException`, which takes an exception instance,
+ to replace the legacy-api :c:func:`PyErr_Display`. (Contributed by
+ Irit Katriel in :gh:`102755`).
+
Porting to Python 3.12
----------------------
@@ -1077,6 +1081,9 @@ Deprecated
:c:func:`PyErr_SetRaisedException` instead.
(Contributed by Mark Shannon in :gh:`101578`.)
+* :c:func:`PyErr_Display` is deprecated. Use :c:func:`PyErr_DisplayException`
+ instead. (Contributed by Irit Katriel in :gh:`102755`).
+
Removed
-------