8000 add news · python/cpython@17a9f88 · GitHub
[go: up one dir, main page]

Skip to content

Commit 17a9f88

Browse files
committed
add news
1 parent cd19310 commit 17a9f88

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Doc/whatsnew/3.12.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,10 @@ New Features
924924
the :attr:`~BaseException.args` passed to the exception's constructor.
925925
(Contributed by Mark Shannon in :gh:`101578`.)
926926

927+
* Add :c:func:`PyErr_DisplayException`, which takes an exception instance,
928+
to replace the legacy-api :c:func:`PyErr_Display`. (Contributed by
929+
Irit Katriel in :gh:`102755`).
930+
927931
Porting to Python 3.12
928932
----------------------
929933

@@ -1057,6 +1061,9 @@ Deprecated
10571061
:c:func:`PyErr_SetRaisedException` instead.
10581062
(Contributed by Mark Shannon in :gh:`101578`.)
10591063

1064+
* :c:func:`PyErr_Display` is deprecated. Use :c:func:`PyErr_DisplayException`
1065+
instead. (Contributed by Irit Katriel in :gh:`102755`).
1066+
10601067

10611068
Removed
10621069
-------
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Add :c:func:`PyErr_DisplayException` which takes just an exception instance,
2+
to replace the legacy :c:func:`PyErr_Display` which takes the ``(typ, exc,
3+
tb)`` triplet.

0 commit comments

Comments
 (0)
0