René's URL Explorer Experiment


Title: [ExceptionGroup] Inconsistent raise inside except* · Issue #103590 · python/cpython · GitHub

Open Graph Title: [ExceptionGroup] Inconsistent raise inside except* · Issue #103590 · python/cpython

X Title: [ExceptionGroup] Inconsistent raise inside except* · Issue #103590 · python/cpython

Description: Bug report When raising inside except* block and the caught exception wasn't an ExceptionGroup originally, then raised exception doesn't get wrapped in ExceptionGroup: try: try: raise TypeError(1) # prints ValueError(3) raise ExceptionGr...

Open Graph Description: Bug report When raising inside except* block and the caught exception wasn't an ExceptionGroup originally, then raised exception doesn't get wrapped in ExceptionGroup: try: try: raise TypeError(1) ...

X Description: Bug report When raising inside except* block and the caught exception wasn't an ExceptionGroup originally, then raised exception doesn't get wrapped in ExceptionGroup: try: try: raise TypeE...

Opengraph URL: https://github.com/python/cpython/issues/103590

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[ExceptionGroup] Inconsistent raise inside except*","articleBody":"\u003c!--\r\n  If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not\r\n  the right place to seek help. Consider the following options instead:\r\n\r\n  - reading the Python tutorial: https://docs.python.org/3/tutorial/\r\n  - posting in the \"Users\" category on discuss.python.org: https://discuss.python.org/c/users/7\r\n  - emailing the Python-list mailing list: https://mail.python.org/mailman/listinfo/python-list\r\n  - searching our issue tracker (https://github.com/python/cpython/issues) to see if\r\n    your problem has already been reported\r\n-->\r\n\r\n# Bug report\r\nWhen raising inside except* block and the caught exception wasn't an ExceptionGroup originally, then raised exception doesn't get wrapped in ExceptionGroup:\r\n```py\r\ntry:\r\n    try:\r\n        raise TypeError(1)  # prints ValueError(3)\r\n        raise ExceptionGroup('', [TypeError(2)])  # prints ExceptionGroup('', [ValueError(3)])\r\n    except* TypeError:\r\n        raise ValueError(3)\r\nexcept BaseException as e:\r\n    print(repr(e))\r\n```\r\n\r\n# Your environment\r\n\r\n\u003c!-- Include as many relevant details as possible about the environment you experienced the bug in -->\r\n\r\n- CPython versions tested on: 3.11.3\r\n- Operating system and architecture: Windows 11 / Ubuntu 22.04\r\n\r\n\u003c!--\r\nYou can freely edit this text. Remove any lines you believe are unnecessary.\r\n-->\r\n\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-103665\n* gh-104094\n* gh-104095\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/andriilahuta","@type":"Person","name":"andriilahuta"},"datePublished":"2023-04-17T14:34:03Z","url":"https://github.com/python/cpython/issues/103590"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:03c37f33-dd05-db59-8450-282052eb988f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8FFA:34F10E:E14685:12DFE41:6B064BB9
html-safe-nonceaec37fcee3275dc3f5be0ad333fe0c54037b708b188f1e7e0e50f159470da486
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RkZBOjM0RjEwRTpFMTQ2ODU6MTJERkU0MTo2QjA2NEJCOSIsInZpc2l0b3JfaWQiOiI2OTkwMjM2MjI4Njg4MTY5OTEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd4c819e498fac6ff38ae55c11566068046f7ae15f5faa50c34efe38ce04a6186
hovercard-subject-tagissue:1671335697
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/103590/issue_layout
twitter:imagehttps://opengraph.githubassets.com/03d1dbad500c33a37761a3c4117d115fcd6f066f2dd6590352e61163974fe263/python/cpython/issues/103590
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/03d1dbad500c33a37761a3c4117d115fcd6f066f2dd6590352e61163974fe263/python/cpython/issues/103590
og:image:altBug report When raising inside except* block and the caught exception wasn't an ExceptionGroup originally, then raised exception doesn't get wrapped in ExceptionGroup: try: try: raise TypeError(1) ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameandriilahuta
hostnamegithub.com
expected-hostnamegithub.com
None772b6997ca4daa0428dd49a25d76052e765555ae560fe9c88517eb828bbd861e
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef1f9a08f7c769a37f1dfc18ad43d463c222a7eea
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/103590#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F103590
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F103590
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/103590
Reloadhttps://github.com/python/cpython/issues/103590
Reloadhttps://github.com/python/cpython/issues/103590
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/103590
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/103590
#103665https://github.com/python/cpython/pull/103665
[ExceptionGroup] Inconsistent raise inside except*https://github.com/python/cpython/issues/103590#top
#103665https://github.com/python/cpython/pull/103665
type-bughttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/andriilahuta
andriilahutahttps://github.com/andriilahuta
on Apr 17, 2023https://github.com/python/cpython/issues/103590#issue-1671335697
gh-103590: do not wrap a single exception raised from a try-except* #103665https://github.com/python/cpython/pull/103665
[3.11] gh-103590: do not wrap a single exception raised from a try-except* #104094https://github.com/python/cpython/pull/104094
gh-103590: mention that the change is included in 3.11.4 and clarify except* documentation #104095https://github.com/python/cpython/pull/104095
andriilahutahttps://github.com/andriilahuta
type-bughttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Apr 17, 2023https://github.com/python/cpython/issues/103590#event-9025407945
https://github.com/mdboom
mdboomhttps://github.com/mdboom
on Apr 17, 2023https://github.com/python/cpython/issues/103590#issuecomment-1511662302
@iritkatrielhttps://github.com/iritkatriel
https://github.com/sunmy2019
sunmy2019https://github.com/sunmy2019
on Apr 17, 2023https://github.com/python/cpython/issues/103590#issuecomment-1511707026
https://peps.python.org/pep-0654/#raising-new-exceptionshttps://peps.python.org/pep-0654/#raising-new-exceptions
https://github.com/andriilahuta
andriilahutahttps://github.com/andriilahuta
on Apr 17, 2023https://github.com/python/cpython/issues/103590#issuecomment-1511847061
@sunmy2019https://github.com/sunmy2019
https://github.com/carljm
carljmhttps://github.com/carljm
on Apr 17, 2023https://github.com/python/cpython/issues/103590#issuecomment-1512247100
documentationhttps://docs.python.org/3/reference/compound_stmts.html#except-star
@iritkatrielhttps://github.com/iritkatriel
iritkatrielhttps://github.com/iritkatriel
on Apr 21, 2023https://github.com/python/cpython/issues/103590#event-9069132714
pythongh-103590: do not wrap a single exception raised from a try-exc…https://github.com/iritkatriel/cpython/commit/17a13111d4f7101239a9f706ae2e5f4fabb30143
pythongh-103590https://github.com/python/cpython/issues/103590
17a1311https://github.com/iritkatriel/cpython/commit/17a13111d4f7101239a9f706ae2e5f4fabb30143
https://github.com/iritkatriel
iritkatrielhttps://github.com/iritkatriel
on Apr 21, 2023https://github.com/python/cpython/issues/103590#issuecomment-1518055851
@gvanrossumhttps://github.com/gvanrossum
iritkatrielhttps://github.com/iritkatriel
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#103665https://github.com/python/cpython/pull/103665
on Apr 27, 2023https://github.com/python/cpython/issues/103590#event-9113530042
iritkatrielhttps://github.com/iritkatriel
on Apr 27, 2023https://github.com/python/cpython/issues/103590#event-9113530705
gh-103590: do not wrap a single exception raised from a try-except* (#…https://github.com/python/cpython/commit/63842bd90793c693f56bd8aad710b5267d41cf6d
gh-103590https://github.com/python/cpython/issues/103590
#…https://github.com/python/cpython/pull/103665
63842bdhttps://github.com/python/cpython/commit/63842bd90793c693f56bd8aad710b5267d41cf6d
pythongh-103590: do not wrap a single exception raised from a try-exc…https://github.com/iritkatriel/cpython/commit/2713e5a779bc9da8b2dafe0211ed71e870bd6c1a
pythongh-103590https://github.com/python/cpython/issues/103590
2713e5ahttps://github.com/iritkatriel/cpython/commit/2713e5a779bc9da8b2dafe0211ed71e870bd6c1a
[3.11] gh-103590: do not wrap a single exception raised from a try-ex…https://github.com/python/cpython/commit/5386730cdd3f2da88e485220dc9fb606f5082430
gh-103590https://github.com/python/cpython/issues/103590
5386730https://github.com/python/cpython/commit/5386730cdd3f2da88e485220dc9fb606f5082430
gh-103590: mention that the change is included in 3.11.4 and clarify …https://github.com/python/cpython/commit/9f9e001ab2ab67acdb2e0383a25ab4c164608a47
gh-103590https://github.com/python/cpython/issues/103590
9f9e001https://github.com/python/cpython/commit/9f9e001ab2ab67acdb2e0383a25ab4c164608a47
meili-borshttps://github.com/apps/meili-bors
on Jul 4, 2023https://github.com/python/cpython/issues/103590#event-9724394699
Merge #793https://github.com/meilisearch/meilisearch-python/commit/7a2724d62fba06902dcf0da0245669f90d86d748
#793https://github.com/meilisearch/meilisearch-python/pull/793
7a2724dhttps://github.com/meilisearch/meilisearch-python/commit/7a2724d62fba06902dcf0da0245669f90d86d748
bmwiedemannhttps://github.com/bmwiedemann
on Jul 6, 2023https://github.com/python/cpython/issues/103590#event-9746050241
Update python-exceptiongroup to version 1.1.2 / rev 6 via SR 1096944https://github.com/bmwiedemann/openSUSE/commit/2ff332747b497c8c87097feda5a4ed01db1f2f44
2ff3327https://github.com/bmwiedemann/openSUSE/commit/2ff332747b497c8c87097feda5a4ed01db1f2f44
meili-borshttps://github.com/apps/meili-bors
on Sep 4, 2023https://github.com/python/cpython/issues/103590#event-10268229119
Merge #837https://github.com/meilisearch/meilisearch-python/commit/797c19af4081653078f32bf255f783e052a14613
#837https://github.com/meilisearch/meilisearch-python/pull/837
797c19ahttps://github.com/meilisearch/meilisearch-python/commit/797c19af4081653078f32bf255f783e052a14613
meili-borshttps://github.com/apps/meili-bors
on Dec 1, 2023https://github.com/python/cpython/issues/103590#event-11120986066
Merge #893https://github.com/meilisearch/meilisearch-python/commit/226f14d15ef9c7d0f6f5e56599f8cc57b3eba824
#893https://github.com/meilisearch/meilisearch-python/pull/893
226f14dhttps://github.com/meilisearch/meilisearch-python/commit/226f14d15ef9c7d0f6f5e56599f8cc57b3eba824
mkjpryorhttps://github.com/mkjpryor
on Apr 19, 2024https://github.com/python/cpython/issues/103590#event-12536252457
Bump exceptiongroup from 1.2.0 to 1.2.1 (#76)https://github.com/azimuth-cloud/cluster-api-addon-provider/commit/4c84722ac59f945f79903dc029ad64fbf4f80fc6
#76https://github.com/azimuth-cloud/cluster-api-addon-provider/pull/76
4c84722https://github.com/azimuth-cloud/cluster-api-addon-provider/commit/4c84722ac59f945f79903dc029ad64fbf4f80fc6
github-actionshttps://github.com/apps/github-actions
on Apr 21, 2024https://github.com/python/cpython/issues/103590#event-12549526393
Bump exceptiongroup from 1.2.0 to 1.2.1 (#1045)https://github.com/genjax-community/genjax/commit/49fccf34b32a60a9b6d3a776cb43b6b945014923
#1045https://github.com/genjax-community/genjax/pull/1045
49fccf3https://github.com/genjax-community/genjax/commit/49fccf34b32a60a9b6d3a776cb43b6b945014923
meili-borshttps://github.com/apps/meili-bors
on May 1, 2024https://github.com/python/cpython/issues/103590#event-12670955493
Merge #953https://github.com/meilisearch/meilisearch-python/commit/b78b72628ac8ee370d0edcd18e77d0e96a75b278
#953https://github.com/meilisearch/meilisearch-python/pull/953
b78b726https://github.com/meilisearch/meilisearch-python/commit/b78b72628ac8ee370d0edcd18e77d0e96a75b278
shaldengekihttps://github.com/shaldengeki
on Jun 6, 2024https://github.com/python/cpython/issues/103590#event-13062116176
Bump exceptiongroup from 1.2.0 to 1.2.1 in /src/python (#106)https://github.com/shaldengeki/monorepo/commit/99d4e81eb715546cc260347d45359f3317177855
#106https://github.com/shaldengeki/monorepo/pull/106
99d4e81https://github.com/shaldengeki/monorepo/commit/99d4e81eb715546cc260347d45359f3317177855
ansibuddyhttps://github.com/ansibuddy
on Jul 14, 2024https://github.com/python/cpython/issues/103590#event-13497083814
Bump the dependencies group across 1 directory with 17 updates (#4254)https://github.com/ansible/molecule/commit/00f24c55384663c86e482ffb806918c5bfbcb1d0
#4254https://github.com/ansible/molecule/pull/4254
00f24c5https://github.com/ansible/molecule/commit/00f24c55384663c86e482ffb806918c5bfbcb1d0
shaldengekihttps://github.com/shaldengeki
on Jul 15, 2024https://github.com/python/cpython/issues/103590#event-13510232859
Bump exceptiongroup from 1.2.1 to 1.2.2 (#234)https://github.com/shaldengeki/monorepo/commit/06961a5b90fce55cef28eda9c150817221884fcd
#234https://github.com/shaldengeki/monorepo/pull/234
06961a5https://github.com/shaldengeki/monorepo/commit/06961a5b90fce55cef28eda9c150817221884fcd
mkjpryorhttps://github.com/mkjpryor
on Jul 19, 2024https://github.com/python/cpython/issues/103590#event-13574921682
Bump exceptiongroup from 1.2.1 to 1.2.2 (#111)https://github.com/azimuth-cloud/cluster-api-addon-provider/commit/b521ece0804d09f9e9425f0809a7adf6f214c807
#111https://github.com/azimuth-cloud/cluster-api-addon-provider/pull/111
b521ecehttps://github.com/azimuth-cloud/cluster-api-addon-provider/commit/b521ece0804d09f9e9425f0809a7adf6f214c807
meili-borshttps://github.com/apps/meili-bors
on Aug 1, 2024https://github.com/python/cpython/issues/103590#event-13724835688
Merge #999https://github.com/meilisearch/meilisearch-python/commit/d0f63c184828075d8275ac99d53e726300b023f3
#999https://github.com/meilisearch/meilisearch-python/pull/999
d0f63c1https://github.com/meilisearch/meilisearch-python/commit/d0f63c184828075d8275ac99d53e726300b023f3
github-actionshttps://github.com/apps/github-actions
on Aug 21, 2024https://github.com/python/cpython/issues/103590#event-13959270092
Bump exceptiongroup from 1.1.2 to 1.2.2 (#8812)https://github.com/aio-libs/aiohttp/commit/39abb92e87b408f59aaba54686c8350c25fd406e
#8812https://github.com/aio-libs/aiohttp/pull/8812
39abb92https://github.com/aio-libs/aiohttp/commit/39abb92e87b408f59aaba54686c8350c25fd406e
Bump exceptiongroup from 1.1.2 to 1.2.2 (#8861)https://github.com/aio-libs/aiohttp/commit/4cdbf01d609db0c21da1cba03b1eb529e715bef2
#8861https://github.com/aio-libs/aiohttp/pull/8861
4cdbf01https://github.com/aio-libs/aiohttp/commit/4cdbf01d609db0c21da1cba03b1eb529e715bef2
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/103590
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/103590
type-bughttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.