You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Docs: a single exception raised in an except* clause is not wrapped in a group, but the Reference says it is #162571
The except* section of the Reference (https://docs.python.org/dev/reference/compound_stmts.html#except-star) says: "After all except* clauses execute, the group of unhandled exceptions is merged with any exceptions that were raised or re-raised from within except* clauses. This merged exception group propagates on". But when every exception of the group was handled and a clause raises one new exception, that exception propagates by itself (gh-103590), so an except RuntimeError around the statement catches it:
The 3.12 docs say this ("If this list contains more than one exception to reraise, they are combined into an exception group", from gh-104095); the sentence was lost in the rewrite of gh-136150. I found it while writing a Lean spec of Python.
Activity
pythongh-162571: Clarify that a single exception re-raised from an ex…