Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pep-0654.rst
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,8 @@ by following ``except*`` clauses. In other words, a single exception group can
cause several ``except*`` clauses to execute, but each such clause executes at
most once (for all matching exceptions from the group) and each exception is
either handled by exactly one clause (the first one that matches its type)
or is reraised at the end.
or is reraised at the end. The manner in which each exception is handled by
a ``try-except*`` block is independent of any other exceptions in the group.

For example, suppose that the body of the ``try`` block above raises
``eg = ExceptionGroup('msg', [FooError(1), FooError(2), BazError()])``.
Expand Down