]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add missing comma to tuple in `except*` docs (#142395)
authordr-carlos <77367421+dr-carlos@users.noreply.github.com>
Sat, 13 Dec 2025 22:51:35 +0000 (09:21 +1030)
committerGitHub <noreply@github.com>
Sat, 13 Dec 2025 22:51:35 +0000 (00:51 +0200)
Doc/reference/compound_stmts.rst

index 6521b4bee5075805cec81c69c065e75e2d18391e..861c221502ed4d06959fc7e43f13330ac3cc6f26 100644 (file)
@@ -388,7 +388,7 @@ type of the target ``e`` is consistently :exc:`BaseExceptionGroup`::
    ... except* BlockingIOError as e:
    ...     print(repr(e))
    ...
-   ExceptionGroup('', (BlockingIOError()))
+   ExceptionGroup('', (BlockingIOError(),))
 
 :keyword:`break`, :keyword:`continue` and :keyword:`return`
 cannot appear in an :keyword:`!except*` clause.