Skip to content

Commit 9f9e001

Browse files
authored
gh-103590: mention that the change is included in 3.11.4 and clarify except* documentation (#104095)
1 parent da1980a commit 9f9e001

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Doc/reference/compound_stmts.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,10 @@ one :keyword:`!except*` clause, the first that matches it. ::
362362

363363

364364
Any remaining exceptions that were not handled by any :keyword:`!except*`
365-
clause are re-raised at the end, combined into an exception group along with
366-
all exceptions that were raised from within :keyword:`!except*` clauses.
365+
clause are re-raised at the end, along with all exceptions that were
366+
raised from within the :keyword:`!except*` clauses. If this list contains
367+
more than one exception to reraise, they are combined into an exception
368+
group.
367369

368370
If the raised exception is not an exception group and its type matches
369371
one of the :keyword:`!except*` clauses, it is caught and wrapped by an

Doc/whatsnew/3.12.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ Other Language Changes
239239

240240
* When a ``try-except*`` construct handles the entire :exc:`ExceptionGroup`
241241
and raises one other exception, that exception is no longer wrapped in an
242-
:exc:`ExceptionGroup`. (Contributed by Irit Katriel in :gh:`103590`.)
242+
:exc:`ExceptionGroup`. Also changed in version 3.11.4. (Contributed by Irit
243+
Katriel in :gh:`103590`.)
243244

244245

245246
New Modules

0 commit comments

Comments
 (0)