Skip to content

gh-162571: Clarify that a single exception re-raised from an except* clause is not wrapped in an exception group - #162583

Open
Pranshu12354 wants to merge 1 commit into
python:mainfrom
Pranshu12354:gh-162571-except-star-docs
Open

Pranshu12354 wants to merge 1 commit into
python:mainfrom
Pranshu12354:gh-162571-except-star-docs

Conversation

@Pranshu12354

@Pranshu12354 Pranshu12354 commented Nov 24, 2026 •

Copy link
Copy Markdown

The except* section of the Reference currently says the merged exception group propagates on, which reads as if the exceptions are always combined into a group. In fact, when a single exception is raised or re-raised from within an except* clause, it propagates on its own, without being wrapped in an exception group (verified with the issue's example).

The 3.12 docs had this clarification ("If this list contains more than one exception to reraise, they are combined into an exception group", gh-104095), but it was lost in the gh-136150 rewrite. This restores it, adapted to the current paragraph, and states the single-exception case explicitly.

Docs-only change; no NEWS entry is required for documentation changes per the devguide.

Disclosure: prepared with AI assistance (Muse); the wording restores the earlier 3.12 text and the behaviour was verified locally.

…cept* clause is not wrapped in an exception group
@python-cla-bot

python-cla-bot Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #36141763 | 📁 Comparing 013f72c against main (4743be9)

  🔍 Preview build  

1 file changed
± reference/compound_stmts.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant