Title: gh-162571: Clarify that a single exception re-raised from an except* clause is not wrapped in an exception group by Pranshu12354 · Pull Request #162583 · python/cpython · GitHub
Open Graph Title: gh-162571: Clarify that a single exception re-raised from an except* clause is not wrapped in an exception group by Pranshu12354 · Pull Request #162583 · python/cpython
X Title: gh-162571: Clarify that a single exception re-raised from an except* clause is not wrapped in an exception group by Pranshu12354 · Pull Request #162583 · python/cpython
Description: 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. Issue: gh-162571
Open Graph Description: 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 ...
X Description: 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 ...
Opengraph URL: https://github.com/python/cpython/pull/162583
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:fca33588-ddfa-1b80-569d-09a21bd9aa93 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 96FA:11DCCF:10534E2:15C92B8:6B0653BE |
| html-safe-nonce | 09e11ce1996369bbb9f84c559e36d49f39d87cc180df2bccdef690fabec9e973 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkZBOjExRENDRjoxMDUzNEUyOjE1QzkyQjg6NkIwNjUzQkUiLCJ2aXNpdG9yX2lkIjoiMzI0Mjg5MDkyOTUxNDEwNzgzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3c0d31c245d3104d6b937c48993d4adcb0ad600fcc76eaf5b31fae3c0e0486c0 |
| hovercard-subject-tag | pull_request:5479329174 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/162583/files |
| twitter:image | https://avatars.githubusercontent.com/u/168135528?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/168135528?s=400&v=4 |
| og:image:alt | 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 ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6324e6ac990fb6befbec840cc0e102a1071c339bfe8f9826bb12de2e3ba1d297 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7f0aa75f4141d440c6110dc31af7ea7797abb6c4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width