diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-03-16 22:18:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-16 22:18:04 (GMT) |
commit | 3f9285a8c52bf776c364f0cf4aecdd8f514ac4e1 (patch) | |
tree | 22d14446b3d59b7402b59bbad2c153b4ddcb1b21 /Doc/whatsnew | |
parent | 405739f9166592104a5b0b945de92e28415ae972 (diff) | |
download | cpython-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.rst | 7 |
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 ------- |