https://github.com/python/cpython/commit/e5a48480c0eb64d5af11f33658c2a3f1170e4ddd
commit: e5a48480c0eb64d5af11f33658c2a3f1170e4ddd
branch: main
author: dr-carlos <[email protected]>
committer: hugovk <[email protected]>
date: 2025-12-14T00:51:35+02:00
summary:

Add missing comma to tuple in `except*` docs (#142395)

files:
M Doc/reference/compound_stmts.rst

diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index 6521b4bee50758..861c221502ed4d 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -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.

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to