diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-04-27 11:52:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-27 11:52:15 (GMT) |
commit | 63842bd90793c693f56bd8aad710b5267d41cf6d (patch) | |
tree | f0bdccdc533b62e48f7ad327981ca96eae387968 /Doc | |
parent | 78942ecd9b1dbbd95e99cc298b0154fe126dac12 (diff) | |
download | cpython-63842bd90793c693f56bd8aad710b5267d41cf6d.zip cpython-63842bd90793c693f56bd8aad710b5267d41cf6d.tar.gz cpython-63842bd90793c693f56bd8aad710b5267d41cf6d.tar.bz2 |
gh-103590: do not wrap a single exception raised from a try-except* (#103665)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/3.12.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index ff631ab..2915005 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -237,6 +237,11 @@ Other Language Changes wrapped by a :exc:`RuntimeError`. Context information is added to the exception as a :pep:`678` note. (Contributed by Irit Katriel in :gh:`77757`.) +* When a ``try-except*`` construct handles the entire :exc:`ExceptionGroup` + and raises one other exception, that exception is no longer wrapped in an + :exc:`ExceptionGroup`. (Contributed by Irit Katriel in :gh:`103590`.) + + New Modules =========== |