Skip to content

Commit 4c8e8ea

Browse files
committed
clarify except* documentation
1 parent b2e71ff commit 4c8e8ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/reference/compound_stmts.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,8 @@ exception group with an empty message string. ::
378378
...
379379
ExceptionGroup('', (BlockingIOError()))
380380

381-
An :keyword:`!except*` clause must have a matching type,
382-
and this type cannot be a subclass of :exc:`BaseExceptionGroup`.
381+
An :keyword:`!except*` clause must have a matching type or a tuple of matching
382+
types, which cannot be a subclass of :exc:`BaseExceptionGroup`.
383383
It is not possible to mix :keyword:`except` and :keyword:`!except*`
384384
in the same :keyword:`try`.
385385
:keyword:`break`, :keyword:`continue` and :keyword:`return`

0 commit comments

Comments
 (0)