summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-03-16 22:18:04 (GMT)
committerGitHub <noreply@github.com>2023-03-16 22:18:04 (GMT)
commit3f9285a8c52bf776c364f0cf4aecdd8f514ac4e1 (patch)
tree22d14446b3d59b7402b59bbad2c153b4ddcb1b21 /Doc/whatsnew
parent405739f9166592104a5b0b945de92e28415ae972 (diff)
downloadcpython-3f9285a8c52bf776c364f0cf4aecdd8f514ac4e1.zip
cpython-3f9285a8c52bf776c364f0cf4aecdd8f514ac4e1.tar.gz
cpython-3f9285a8c52bf776c364f0cf4aecdd8f514ac4e1.tar.bz2
gh-102755: Add PyErr_DisplayException(exc) (#102756)
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
-------