René's URL Explorer Experiment


Title: bpo-32604: [_xxsubinterpreters] Propagate exceptions. by ericsnowcurrently · Pull Request #19768 · python/cpython · GitHub

Open Graph Title: bpo-32604: [_xxsubinterpreters] Propagate exceptions. by ericsnowcurrently · Pull Request #19768 · python/cpython

X Title: bpo-32604: [_xxsubinterpreters] Propagate exceptions. by ericsnowcurrently · Pull Request #19768 · python/cpython

Description: (Note: PEP 554 is not accepted and the implementation in the code base is a private one for use in the test suite.) If code running in a subinterpreter raises an uncaught exception then the "run" call in the calling interpreter fails. A RunFailedError is raised there that summarizes the original exception as a string. The actual exception type, __cause__, __context__, state, etc. are all discarded. This turned out to be functionally insufficient in practice. There is a more helpful solution (and PEP 554 has been updated appropriately). This change adds the exception propagation behavior described in PEP 554 to the _xxsubinterpreters module. With this change a copy of the original exception is set to __cause__ on the RunFailedError. For now we are using "pickle", which preserves the exception's state. We also preserve the original __cause__, __context__, and __traceback__ (since "pickle" does not preserve those). https://bugs.python.org/issue32604

Open Graph Description: (Note: PEP 554 is not accepted and the implementation in the code base is a private one for use in the test suite.) If code running in a subinterpreter raises an uncaught exception then the "r...

X Description: (Note: PEP 554 is not accepted and the implementation in the code base is a private one for use in the test suite.) If code running in a subinterpreter raises an uncaught exception then the &qu...

Opengraph URL: https://github.com/python/cpython/pull/19768

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9aca8a2a-eaab-1dfc-f585-8251e51546e4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEAF0:65407:39BE8E:4D24B5:6969AD73
html-safe-nonceeb39a272d7bf6741b2710e0d4b0d668055a42eab9620b3166a7d5b56b309d0b0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUYwOjY1NDA3OjM5QkU4RTo0RDI0QjU6Njk2OUFENzMiLCJ2aXNpdG9yX2lkIjoiODI5NzE0ODg5Nzk5MzI3MjY5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2b7d89e1ec0fa3e48b5eda7b03fd904cca2a13a3bbe70fe812147a464fa9a040
hovercard-subject-tagpull_request:410315014
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/19768/files
twitter:imagehttps://avatars.githubusercontent.com/u/1152074?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1152074?s=400&v=4
og:image:alt(Note: PEP 554 is not accepted and the implementation in the code base is a private one for use in the test suite.) If code running in a subinterpreter raises an uncaught exception then the "r...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release124667f43168afb6c9c03b7c02eb5b1d2e1be3d9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/19768/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F19768%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F19768%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/19768/files
Reloadhttps://github.com/python/cpython/pull/19768/files
Reloadhttps://github.com/python/cpython/pull/19768/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/19768/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/19768/files
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
python:masterhttps://github.com/python/cpython/tree/master
ericsnowcurrently:propagate-exceptionshttps://github.com/ericsnowcurrently/cpython/tree/propagate-exceptions
Conversation 3 https://github.com/python/cpython/pull/19768
Commits 16 https://github.com/python/cpython/pull/19768/commits
Checks 0 https://github.com/python/cpython/pull/19768/checks
Files changed https://github.com/python/cpython/pull/19768/files
Please reload this pagehttps://github.com/python/cpython/pull/19768/files
bpo-32604: [_xxsubinterpreters] Propagate exceptions. https://github.com/python/cpython/pull/19768/files#top
Show all changes 16 commits https://github.com/python/cpython/pull/19768/files
3e4d56d Add tests for error propagation. ericsnowcurrently Apr 23, 2020 https://github.com/python/cpython/pull/19768/commits/3e4d56dfd8e571a981f29fe24660cbe5dda21c0b
f19008b Add string utils. ericsnowcurrently Apr 27, 2020 https://github.com/python/cpython/pull/19768/commits/f19008bef91c6c2427d9c1de677742bb3507b205
4709f0f Add object utils (incl. struct _objsnapshot). ericsnowcurrently Apr 27, 2020 https://github.com/python/cpython/pull/19768/commits/4709f0fa4e36633bffdc680e6e698daa6beb1963
185788d Add structs _tbsnapshot and _excsnapshot. ericsnowcurrently Apr 27, 2020 https://github.com/python/cpython/pull/19768/commits/185788dc1128d66a1a7fe7aaddd67813daf77443
f94e5b4 Propagate exceptions using the new utils. ericsnowcurrently Apr 27, 2020 https://github.com/python/cpython/pull/19768/commits/f94e5b45ade7ffee1dc6a3c3655060ce1d3cc408
e3095be Factor out _sharedexception_get_cause() and _get_wrapper(). ericsnowcurrently Apr 27, 2020 https://github.com/python/cpython/pull/19768/commits/e3095bec2e3d5b939e409859f3199b90c8e6a65f
f3d88c9 Factor out _pyexc_create(). ericsnowcurrently Apr 27, 2020 https://github.com/python/cpython/pull/19768/commits/f3d88c9cfe59b368290c60c498378755ee4999c6
99a58f4 Factor out _pyexc_set_context(). ericsnowcurrently Apr 27, 2020 https://github.com/python/cpython/pull/19768/commits/99a58f4fbe7ae4f6152b4a7cfac4b6db1ee66c57
40b092a Use _PyErr_ChainExceptions() to do chaining. ericsnowcurrently Apr 27, 2020 https://github.com/python/cpython/pull/19768/commits/40b092a1fe299417d8a907e4abac4b0f543ba121
5407cef Set __context__ manually. ericsnowcurrently Apr 27, 2020 https://github.com/python/cpython/pull/19768/commits/5407cefcdf98178c3fa820dd0925dd2e4ca93d22
d9ecbeb Drop _copy_raw_string(). ericsnowcurrently Apr 27, 2020 https://github.com/python/cpython/pull/19768/commits/d9ecbeb925ed48c294b69cf409a1c8c996113bea
54594ba Fix RunStringTests. ericsnowcurrently Apr 27, 2020 https://github.com/python/cpython/pull/19768/commits/54594bad48efb97329400255a21964e04c5b13d9
a191c03 [tests] Check proper __traceback__. ericsnowcurrently Apr 27, 2020 https://github.com/python/cpython/pull/19768/commits/a191c030d68bda7ba820200eaa76c94d6c9a1dfb
6d9e383 Extract __traceback__ with the proper order. ericsnowcurrently Apr 28, 2020 https://github.com/python/cpython/pull/19768/commits/6d9e383b2f60eb36f5bbb991b22311fd92849606
adf4413 Fully pickle propagated exceptions. ericsnowcurrently Apr 28, 2020 https://github.com/python/cpython/pull/19768/commits/adf4413096b6bc4dc1f1a80fb4ceea397fd4143e
212ac0b Fix the "custom" exception tests. ericsnowcurrently Apr 28, 2020 https://github.com/python/cpython/pull/19768/commits/212ac0b72aac45c616e3c1c198ebe7f11b7a1bd3
Clear filters https://github.com/python/cpython/pull/19768/files
Please reload this pagehttps://github.com/python/cpython/pull/19768/files
Please reload this pagehttps://github.com/python/cpython/pull/19768/files
test__xxsubinterpreters.py https://github.com/python/cpython/pull/19768/files#diff-aafe61b536c6466b2aa53aae4b007795bb249f8b7975058c822c99fab8994b47
_xxsubinterpretersmodule.c https://github.com/python/cpython/pull/19768/files#diff-f29800af0b7052514f5cc3d1a5858d704a8f0dee4c88788b741c00a0ff39f8d0
Lib/test/test__xxsubinterpreters.pyhttps://github.com/python/cpython/pull/19768/files#diff-aafe61b536c6466b2aa53aae4b007795bb249f8b7975058c822c99fab8994b47
View file https://github.com/ericsnowcurrently/cpython/blob/212ac0b72aac45c616e3c1c198ebe7f11b7a1bd3/Lib/test/test__xxsubinterpreters.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/19768/{{ revealButtonHref }}
https://github.com/python/cpython/pull/19768/files#diff-aafe61b536c6466b2aa53aae4b007795bb249f8b7975058c822c99fab8994b47
https://github.com/python/cpython/pull/19768/files#diff-aafe61b536c6466b2aa53aae4b007795bb249f8b7975058c822c99fab8994b47
https://github.com/python/cpython/pull/19768/files#diff-aafe61b536c6466b2aa53aae4b007795bb249f8b7975058c822c99fab8994b47
https://github.com/python/cpython/pull/19768/files#diff-aafe61b536c6466b2aa53aae4b007795bb249f8b7975058c822c99fab8994b47
https://github.com/python/cpython/pull/19768/files#diff-aafe61b536c6466b2aa53aae4b007795bb249f8b7975058c822c99fab8994b47
Please reload this pagehttps://github.com/python/cpython/pull/19768/files
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

Viewport: width=device-width


URLs of crawlers that visited me.