]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Add missing comma to tuple in `except*` docs (GH-142395) (#142684)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 13 Dec 2025 22:57:22 +0000 (23:57 +0100)
committerGitHub <noreply@github.com>
Sat, 13 Dec 2025 22:57:22 +0000 (22:57 +0000)
Co-authored-by: dr-carlos <77367421+dr-carlos@users.noreply.github.com>
Doc/reference/compound_stmts.rst

index 9c47cd29255dc74ffd1e18f53c4a5d4fc4c94c2a..80eb3e84d92573ebf083ef32ecc9bf490ba9d3fe 100644 (file)
@@ -385,7 +385,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.