From 013f72cf8a1c2a3dd645741d48529e51308575c0 Mon Sep 17 00:00:00 2001 From: Prashant Singh Sengar <168135528+Pranshu12354@users.noreply.github.com> Date: Wed, 25 Nov 2026 01:26:39 +0530 Subject: [PATCH] gh-162571: Clarify that a single exception re-raised from an except* clause is not wrapped in an exception group --- Doc/reference/compound_stmts.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst index 7939b18306a2f2..20c497c3736a72 100644 --- a/Doc/reference/compound_stmts.rst +++ b/Doc/reference/compound_stmts.rst @@ -357,7 +357,11 @@ or the last :keyword:`!except*` clause has run. After all :keyword:`!except*` clauses execute, the group of unhandled exceptions is merged with any exceptions that were raised or re-raised from within -:keyword:`!except*` clauses. This merged exception group propagates on:: +:keyword:`!except*` clauses. If this list contains more than one exception +to reraise, they are combined into an exception group, and this merged +exception group propagates on. If the list contains a single exception, +that exception propagates on its own, without being wrapped in an +exception group:: >>> try: ... raise ExceptionGroup("eg",