]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-103590: mention that the change is included in 3.11.4 and clarify except* document...
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>
Wed, 3 May 2023 20:55:19 +0000 (21:55 +0100)
committerGitHub <noreply@github.com>
Wed, 3 May 2023 20:55:19 +0000 (21:55 +0100)
Doc/reference/compound_stmts.rst
Doc/whatsnew/3.12.rst

index f0a8936c35bf4a014369c5660786a442ef1ba0f0..0731589e4cadb8141d72b93fce17216f6ec723ac 100644 (file)
@@ -362,8 +362,10 @@ one :keyword:`!except*` clause, the first that matches it. ::
 
 
 Any remaining exceptions that were not handled by any :keyword:`!except*`
-clause are re-raised at the end, combined into an exception group along with
-all exceptions that were raised from within :keyword:`!except*` clauses.
+clause are re-raised at the end, along with all exceptions that were
+raised from within the :keyword:`!except*` clauses. If this list contains
+more than one exception to reraise, they are combined into an exception
+group.
 
 If the raised exception is not an exception group and its type matches
 one of the :keyword:`!except*` clauses, it is caught and wrapped by an
index 94b44ed9ce0953c7fbddd060c3131b69543b74d4..49f9bd28248dac337f3654bed21566e788deef95 100644 (file)
@@ -239,7 +239,8 @@ Other Language Changes
 
 * 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`.)
+  :exc:`ExceptionGroup`. Also changed in version 3.11.4. (Contributed by Irit
+  Katriel in :gh:`103590`.)
 
 
 New Modules