René's URL Explorer Experiment


Title: gh-90501: Add PyErr_GetHandledException and PyErr_SetHandledException by iritkatriel · Pull Request #30531 · python/cpython · GitHub

Open Graph Title: gh-90501: Add PyErr_GetHandledException and PyErr_SetHandledException by iritkatriel · Pull Request #30531 · python/cpython

X Title: gh-90501: Add PyErr_GetHandledException and PyErr_SetHandledException by iritkatriel · Pull Request #30531 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Now that exc_info was replace by just the exception, we can have simpler versions of the get/set c-api functions. https://bugs.python.org/issue46343

X Description: Now that exc_info was replace by just the exception, we can have simpler versions of the get/set c-api functions. https://bugs.python.org/issue46343

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:db33c66a-52f2-0816-e8df-9c6bb446c39e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAF56:3E65C:8D9F11:C284A7:6A604542
html-safe-nonce7161092a849246293b24cb81d06b4fd79292f498ece9ad277a20215befd6b0e4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjU2OjNFNjVDOjhEOUYxMTpDMjg0QTc6NkE2MDQ1NDIiLCJ2aXNpdG9yX2lkIjoiNDY0ODY1OTI0NjE3OTY5Nzk4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacebf6b11a87ef5ebd4b564fc27d05ed3c472711c6db8438a61e4665c06604357f
hovercard-subject-tagpull_request:818679654
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/30531/commits
twitter:imagehttps://opengraph.githubassets.com/4c0c3e6bace4ed7c914a90929205dcd1735524f128a9ce632995aeaa779dbca5/python/cpython/pull/30531
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4c0c3e6bace4ed7c914a90929205dcd1735524f128a9ce632995aeaa779dbca5/python/cpython/pull/30531
og:image:altNow that exc_info was replace by just the exception, we can have simpler versions of the get/set c-api functions. https://bugs.python.org/issue46343
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameiritkatriel
hostnamegithub.com
expected-hostnamegithub.com
None60da8c2a42fa2bbf5f7567474990ec467836a84444262a58e200fa91b7f3d2d0
turbo-cache-controlno-cache
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
release9824515e740d83d5eb82168a089b806ab0fe04a1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/30531/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F30531%2Fcommits
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2F30531%2Fcommits
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%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/30531/commits
Reloadhttps://github.com/python/cpython/pull/30531/commits
Reloadhttps://github.com/python/cpython/pull/30531/commits
Please reload this pagehttps://github.com/python/cpython/pull/30531/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/30531/commits
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.9k 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.4k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
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 and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
iritkatrielhttps://github.com/iritkatriel
python:mainhttps://github.com/python/cpython/tree/main
iritkatriel:bpo-46343-GetSetExceptionhttps://github.com/iritkatriel/cpython/tree/bpo-46343-GetSetException
Conversationhttps://github.com/python/cpython/pull/30531
Commits21 (21)https://github.com/python/cpython/pull/30531/commits
Checkshttps://github.com/python/cpython/pull/30531/checks
Files changedhttps://github.com/python/cpython/pull/30531/files
gh-90501: Add PyErr_GetHandledException and PyErr_SetHandledExceptionhttps://github.com/python/cpython/pull/30531/commits#top
iritkatrielhttps://github.com/iritkatriel
python:mainhttps://github.com/python/cpython/tree/main
iritkatriel:bpo-46343-GetSetExceptionhttps://github.com/iritkatriel/cpython/tree/bpo-46343-GetSetException
bpo-46343: Add PyErr_GetActiveException and PyErr_SetActiveExceptionhttps://github.com/python/cpython/pull/30531/commits/2b4d518e15b55262f6e0fb5df37e2029a3ed03ec
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
2b4d518https://github.com/python/cpython/pull/30531/commits/2b4d518e15b55262f6e0fb5df37e2029a3ed03ec
https://github.com/python/cpython/tree/2b4d518e15b55262f6e0fb5df37e2029a3ed03ec
GetActiveException returns exception as its return valuehttps://github.com/python/cpython/pull/30531/commits/87e6087fde2ad5fce12dbbeed5c53692042efe6c
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
87e6087https://github.com/python/cpython/pull/30531/commits/87e6087fde2ad5fce12dbbeed5c53692042efe6c
https://github.com/python/cpython/tree/87e6087fde2ad5fce12dbbeed5c53692042efe6c
fix testhttps://github.com/python/cpython/pull/30531/commits/ee4d98ed5cfa171f719bfed76831c2d8cd55af56
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
ee4d98ehttps://github.com/python/cpython/pull/30531/commits/ee4d98ed5cfa171f719bfed76831c2d8cd55af56
https://github.com/python/cpython/tree/ee4d98ed5cfa171f719bfed76831c2d8cd55af56
use sys.exception instead of sys.exc_infohttps://github.com/python/cpython/pull/30531/commits/ebd9278ec6f612d7e23f3ca2bf93b83efad86713
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
ebd9278https://github.com/python/cpython/pull/30531/commits/ebd9278ec6f612d7e23f3ca2bf93b83efad86713
https://github.com/python/cpython/tree/ebd9278ec6f612d7e23f3ca2bf93b83efad86713
updated whatsnewhttps://github.com/python/cpython/pull/30531/commits/5631d32fbce6e7d1bb634076ab09d10827b89b59
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
5631d32https://github.com/python/cpython/pull/30531/commits/5631d32fbce6e7d1bb634076ab09d10827b89b59
https://github.com/python/cpython/tree/5631d32fbce6e7d1bb634076ab09d10827b89b59
regen-limited-abihttps://github.com/python/cpython/pull/30531/commits/20fa4217e676c342185753036c992f42244a4094
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
20fa421https://github.com/python/cpython/pull/30531/commits/20fa4217e676c342185753036c992f42244a4094
https://github.com/python/cpython/tree/20fa4217e676c342185753036c992f42244a4094
[1] Do not steal reference. [2] () --> (void)https://github.com/python/cpython/pull/30531/commits/3a7ab17573c0ade0089262c1d165da7eb005dbca
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
3a7ab17https://github.com/python/cpython/pull/30531/commits/3a7ab17573c0ade0089262c1d165da7eb005dbca
https://github.com/python/cpython/tree/3a7ab17573c0ade0089262c1d165da7eb005dbca
Use the new Py_(X)NewRef in a couple of places. Use self.fail() in test.https://github.com/python/cpython/pull/30531/commits/dbfd9d4d50fabd820d84b1350a51d4aa8e279161
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
kumaraditya303https://github.com/python/cpython/commits?author=kumaraditya303
dbfd9d4https://github.com/python/cpython/pull/30531/commits/dbfd9d4d50fabd820d84b1350a51d4aa8e279161
https://github.com/python/cpython/tree/dbfd9d4d50fabd820d84b1350a51d4aa8e279161
add :func: markup in dochttps://github.com/python/cpython/pull/30531/commits/a412e4b8636b2ed5278018f63b9d034a2f1f191b
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
kumaraditya303https://github.com/python/cpython/commits?author=kumaraditya303
a412e4bhttps://github.com/python/cpython/pull/30531/commits/a412e4b8636b2ed5278018f63b9d034a2f1f191b
https://github.com/python/cpython/tree/a412e4b8636b2ed5278018f63b9d034a2f1f191b
split out _PyErr_SetActiveException(tstate, exc)https://github.com/python/cpython/pull/30531/commits/bcdf5995104dca67662ace45001be4be0042512d
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
bcdf599https://github.com/python/cpython/pull/30531/commits/bcdf5995104dca67662ace45001be4be0042512d
https://github.com/python/cpython/tree/bcdf5995104dca67662ace45001be4be0042512d
Merge remote-tracking branch 'upstream/main' into bpo-46343-GetSetExceptionhttps://github.com/python/cpython/pull/30531/commits/c63eabf4dc8803f6f9b5cd9e3cbec90fd27dd2f8
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
c63eabfhttps://github.com/python/cpython/pull/30531/commits/c63eabf4dc8803f6f9b5cd9e3cbec90fd27dd2f8
https://github.com/python/cpython/tree/c63eabf4dc8803f6f9b5cd9e3cbec90fd27dd2f8
read --> gethttps://github.com/python/cpython/pull/30531/commits/18eb35c54eed1002b309c1c510d423fa015dff5f
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
vstinnerhttps://github.com/python/cpython/commits?author=vstinner
18eb35chttps://github.com/python/cpython/pull/30531/commits/18eb35c54eed1002b309c1c510d423fa015dff5f
https://github.com/python/cpython/tree/18eb35c54eed1002b309c1c510d423fa015dff5f
fix limited api versionhttps://github.com/python/cpython/pull/30531/commits/87981ab5a17e306dafc414e91cc7850f068a9ebb
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
87981abhttps://github.com/python/cpython/pull/30531/commits/87981ab5a17e306dafc414e91cc7850f068a9ebb
https://github.com/python/cpython/tree/87981ab5a17e306dafc414e91cc7850f068a9ebb
PyErr_GetActiveException always returns NULL if no exception. Fix refleak in test_set_exception. Use METH_O in test_set_exceptionhttps://github.com/python/cpython/pull/30531/commits/95555975f8c0d355acd5c25f705602a0b62dbac4
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
9555597https://github.com/python/cpython/pull/30531/commits/95555975f8c0d355acd5c25f705602a0b62dbac4
https://github.com/python/cpython/tree/95555975f8c0d355acd5c25f705602a0b62dbac4
doc changes following review by Victorhttps://github.com/python/cpython/pull/30531/commits/e0ee504de7ca59cdcace273f59a46330bc785be5
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
e0ee504https://github.com/python/cpython/pull/30531/commits/e0ee504de7ca59cdcace273f59a46330bc785be5
https://github.com/python/cpython/tree/e0ee504de7ca59cdcace273f59a46330bc785be5
renamed Get/SetActiveException --> Get/SetHandledExceptionhttps://github.com/python/cpython/pull/30531/commits/e6a3a7e01b8a4c18bac0af652b826416981927bc
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
e6a3a7ehttps://github.com/python/cpython/pull/30531/commits/e6a3a7e01b8a4c18bac0af652b826416981927bc
https://github.com/python/cpython/tree/e6a3a7e01b8a4c18bac0af652b826416981927bc
Merge remote-tracking branch 'upstream/main' into bpo-46343-GetSetExceptionhttps://github.com/python/cpython/pull/30531/commits/261464c72453a94e4cf18e8871ef876a1523a44a
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
261464chttps://github.com/python/cpython/pull/30531/commits/261464c72453a94e4cf18e8871ef876a1523a44a
https://github.com/python/cpython/tree/261464c72453a94e4cf18e8871ef876a1523a44a
add new functions to Doc/data/stable_abi.dathttps://github.com/python/cpython/pull/30531/commits/0355cc9539c6845bedd02435941503bd75f4e317
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
0355cc9https://github.com/python/cpython/pull/30531/commits/0355cc9539c6845bedd02435941503bd75f4e317
https://github.com/python/cpython/tree/0355cc9539c6845bedd02435941503bd75f4e317
alphabeticalhttps://github.com/python/cpython/pull/30531/commits/938221535b77d76680ad80023643cfe9649d238e
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
9382215https://github.com/python/cpython/pull/30531/commits/938221535b77d76680ad80023643cfe9649d238e
https://github.com/python/cpython/tree/938221535b77d76680ad80023643cfe9649d238e
make regen-limited-abihttps://github.com/python/cpython/pull/30531/commits/1cc3a4b6000cb5a8f41e0e621a2c20357f6ab0d5
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
1cc3a4bhttps://github.com/python/cpython/pull/30531/commits/1cc3a4b6000cb5a8f41e0e621a2c20357f6ab0d5
https://github.com/python/cpython/tree/1cc3a4b6000cb5a8f41e0e621a2c20357f6ab0d5
clearer dochttps://github.com/python/cpython/pull/30531/commits/ffa870b046aaa9119c588318eff6d5458a71be72
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
ffa870bhttps://github.com/python/cpython/pull/30531/commits/ffa870b046aaa9119c588318eff6d5458a71be72
https://github.com/python/cpython/tree/ffa870b046aaa9119c588318eff6d5458a71be72
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.