René's URL Explorer Experiment


Title: GH-96704: Add task.get_context(), use it in call_exception_handler() by gvanrossum · Pull Request #96756 · python/cpython · GitHub

Open Graph Title: GH-96704: Add task.get_context(), use it in call_exception_handler() by gvanrossum · Pull Request #96756 · python/cpython

X Title: GH-96704: Add task.get_context(), use it in call_exception_handler() by gvanrossum · Pull Request #96756 · python/cpython

Description: The point here is for call_exception_handler() to make an effort to run the exception handler in the correct task context (contextvars.Context), if it is called on behalf of a task. The easiest way...

Open Graph Description: The point here is for call_exception_handler() to make an effort to run the exception handler in the correct task context (contextvars.Context), if it is called on behalf of a task. The easiest way...

X Description: The point here is for call_exception_handler() to make an effort to run the exception handler in the correct task context (contextvars.Context), if it is called on behalf of a task. The easiest way...

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:45aec555-654d-a7fd-3d49-590e724299e4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id87D2:2FB293:4DF738:691168:6969D8EF
html-safe-nonced6e92a7c94ac7a0fb58a6110d485535c3e627c01929057aaecc76bb46ab22283
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0QyOjJGQjI5Mzo0REY3Mzg6NjkxMTY4OjY5NjlEOEVGIiwidmlzaXRvcl9pZCI6IjQyMTcwODE2OTUxMDI5NDk2MTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac548aa760f6c0a90926eceea9476584aedb667f2bb0638dbc3beb4235167c6021
hovercard-subject-tagpull_request:1052581324
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/96756/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/59985dcdf4d85d0748ead95d8866568aaa928b83bd27841f8ee90e6f822fe3bf/python/cpython/pull/96756
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/59985dcdf4d85d0748ead95d8866568aaa928b83bd27841f8ee90e6f822fe3bf/python/cpython/pull/96756
og:image:altThe point here is for call_exception_handler() to make an effort to run the exception handler in the correct task context (contextvars.Context), if it is called on behalf of a task. The easiest way...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegvanrossum
hostnamegithub.com
expected-hostnamegithub.com
Noneacedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056
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
release83c08c21cdda978090dc44364b71aa5bc6dcea79
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/96756#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F96756
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%2F96756
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/96756
Reloadhttps://github.com/python/cpython/pull/96756
Reloadhttps://github.com/python/cpython/pull/96756
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/96756
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/96756
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
Jump to bottomhttps://github.com/python/cpython/pull/96756#issue-comment-box
gvanrossumhttps://github.com/gvanrossum
python:mainhttps://github.com/python/cpython/tree/main
gvanrossum:exc-handler-contexthttps://github.com/gvanrossum/cpython/tree/exc-handler-context
GH-96704: Add task.get_context(), use it in call_exception_handler() https://github.com/python/cpython/pull/96756#top
gvanrossumhttps://github.com/gvanrossum
python:mainhttps://github.com/python/cpython/tree/main
gvanrossum:exc-handler-contexthttps://github.com/gvanrossum/cpython/tree/exc-handler-context
Conversation 8 https://github.com/python/cpython/pull/96756
Commits 7 https://github.com/python/cpython/pull/96756/commits
Checks 0 https://github.com/python/cpython/pull/96756/checks
Files changed https://github.com/python/cpython/pull/96756/files
Please reload this pagehttps://github.com/python/cpython/pull/96756
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Sep 11, 2022https://github.com/python/cpython/pull/96756#issue-1369043631
Please reload this pagehttps://github.com/python/cpython/pull/96756
asyncio exception handler called with incorrect context #96704https://github.com/python/cpython/issues/96704
Please reload this pagehttps://github.com/python/cpython/pull/96756
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
kumaraditya303https://github.com/kumaraditya303
September 11, 2022 19:38https://github.com/python/cpython/pull/96756#event-7362852240
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Sep 11, 2022https://github.com/python/cpython/pull/96756#event-7362852279
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Sep 11, 2022https://github.com/python/cpython/pull/96756#issuecomment-1243037416
Please reload this pagehttps://github.com/python/cpython/pull/96756
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Sep 12, 2022 https://github.com/python/cpython/pull/96756#pullrequestreview-1104477572
View reviewed changes https://github.com/python/cpython/pull/96756/files
Lib/asyncio/base_events.pyhttps://github.com/python/cpython/pull/96756/files#diff-7962e1627bc1bfbce13bef0be78d5ef7fc962f99bbc524a199ef489852ca1344
Please reload this pagehttps://github.com/python/cpython/pull/96756
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Sep 14, 2022https://github.com/python/cpython/pull/96756#issuecomment-1247345775
Please reload this pagehttps://github.com/python/cpython/pull/96756
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
September 14, 2022 22:03https://github.com/python/cpython/pull/96756#event-7389847222
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
1st1https://github.com/1st1
asvetlovhttps://github.com/asvetlov
code ownershttps://github.com/python/cpython/blob/9f1814723f5596115a794a8bec0d053f25dbf32f/.github/CODEOWNERS#L8
September 14, 2022 22:03https://github.com/python/cpython/pull/96756#event-7389847256
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Sep 18, 2022https://github.com/python/cpython/pull/96756#issuecomment-1250190953
Please reload this pagehttps://github.com/python/cpython/pull/96756
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Oct 4, 2022https://github.com/python/cpython/pull/96756#issuecomment-1267558330
Please reload this pagehttps://github.com/python/cpython/pull/96756
gvanrossumhttps://github.com/gvanrossum
October 4, 2022 13:47https://github.com/python/cpython/pull/96756#commits-pushed-1d2d081
https://github.com/gvanrossum
pythonGH-96704https://github.com/python/cpython/issues/96704
: Add task.get_context(), use it in call_exception_hand…https://github.com/python/cpython/pull/96756/commits/1d2d0814a7733c2da1e17342aaf551fef4a711ff
1d2d081https://github.com/python/cpython/pull/96756/commits/1d2d0814a7733c2da1e17342aaf551fef4a711ff
https://github.com/kumaraditya303
https://github.com/gvanrossum
add two testshttps://github.com/python/cpython/pull/96756/commits/9fbc1d8f4bc16c0da6b92e831a8b454bc5d34230
9fbc1d8https://github.com/python/cpython/pull/96756/commits/9fbc1d8f4bc16c0da6b92e831a8b454bc5d34230
https://github.com/apps/blurb-it
https://github.com/gvanrossum
📜🤖 Added by blurb_it.https://github.com/python/cpython/pull/96756/commits/bc3000beba2ff07eada11cb82738965b63fec952
bc3000bhttps://github.com/python/cpython/pull/96756/commits/bc3000beba2ff07eada11cb82738965b63fec952
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
force-pushedhttps://github.com/python/cpython/compare/a2a0c57bd750b5ca86aa6f0b4b1091b9eeadeff9..bc3000beba2ff07eada11cb82738965b63fec952
a2a0c57https://github.com/python/cpython/commit/a2a0c57bd750b5ca86aa6f0b4b1091b9eeadeff9
bc3000bhttps://github.com/python/cpython/commit/bc3000beba2ff07eada11cb82738965b63fec952
Compare https://github.com/python/cpython/compare/a2a0c57bd750b5ca86aa6f0b4b1091b9eeadeff9..bc3000beba2ff07eada11cb82738965b63fec952
October 4, 2022 20:47https://github.com/python/cpython/pull/96756#event-7519953504
gvanrossumhttps://github.com/gvanrossum
October 4, 2022 15:20https://github.com/python/cpython/pull/96756#commits-pushed-bcd1a4a
https://github.com/gvanrossum
Also look in handle for contextvarshttps://github.com/python/cpython/pull/96756/commits/bcd1a4a0bc72b9299a24fb671397f03621090e9f
bcd1a4ahttps://github.com/python/cpython/pull/96756/commits/bcd1a4a0bc72b9299a24fb671397f03621090e9f
https://github.com/gvanrossum
Update NEWShttps://github.com/python/cpython/pull/96756/commits/d9ccfe3822a69ee370ff9cf03a5189e0fe6e165c
d9ccfe3https://github.com/python/cpython/pull/96756/commits/d9ccfe3822a69ee370ff9cf03a5189e0fe6e165c
https://github.com/gvanrossum
Document the {Task,Handle}.get_context() methodshttps://github.com/python/cpython/pull/96756/commits/a362fc0e22ce3cdfd688c197b061a0fcfe81e887
a362fc0https://github.com/python/cpython/pull/96756/commits/a362fc0e22ce3cdfd688c197b061a0fcfe81e887
https://github.com/gvanrossum
Document change for exception handlerhttps://github.com/python/cpython/pull/96756/commits/0ca502343b935365f6e0f7e477a667f0b93fc55b
0ca5023https://github.com/python/cpython/pull/96756/commits/0ca502343b935365f6e0f7e477a667f0b93fc55b
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Oct 4, 2022https://github.com/python/cpython/pull/96756#issuecomment-1267684556
@kumaraditya303https://github.com/kumaraditya303
Please reload this pagehttps://github.com/python/cpython/pull/96756
https://github.com/kumaraditya303
kumaraditya303https://github.com/kumaraditya303
Oct 5, 2022 https://github.com/python/cpython/pull/96756#pullrequestreview-1130930471
View reviewed changes https://github.com/python/cpython/pull/96756/files/0ca502343b935365f6e0f7e477a667f0b93fc55b
kumaraditya303https://github.com/kumaraditya303
https://github.com/python/cpython/pull/96756#pullrequestreview-1130930471
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/96756
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
8079befhttps://github.com/python/cpython/commit/8079bef56f2249ecedafe0be5a6d7a120a7f3ac3
Oct 5, 2022https://github.com/python/cpython/pull/96756#event-7522495457
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Oct 5, 2022https://github.com/python/cpython/pull/96756#event-7522495622
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
October 5, 2022 06:49https://github.com/python/cpython/pull/96756#event-7522495730
carljmhttps://github.com/carljm
Oct 6, 2022 https://github.com/python/cpython/pull/96756#ref-commit-4bb5d9d
https://github.com/carljm
Merge branch 'main' into dictwatchhttps://github.com/carljm/cpython/commit/4bb5d9ddf2d426d9ed8ca642a5c250e5d71f96bb
4bb5d9dhttps://github.com/carljm/cpython/commit/4bb5d9ddf2d426d9ed8ca642a5c250e5d71f96bb
pythongh-65961https://github.com/python/cpython/issues/65961
python#97879https://github.com/python/cpython/pull/97879
python#97926https://github.com/python/cpython/pull/97926
pythongh-97850https://github.com/python/cpython/issues/97850
python#97876https://github.com/python/cpython/pull/97876
python#96671https://github.com/python/cpython/pull/96671
pythongh-93738https://github.com/python/cpython/issues/93738
python#97768https://github.com/python/cpython/pull/97768
pythongh-91539https://github.com/python/cpython/issues/91539
python#91566https://github.com/python/cpython/pull/91566
python#97701https://github.com/python/cpython/pull/97701
pythonGH-95172https://github.com/python/cpython/pull/95172
python#95172https://github.com/python/cpython/pull/95172
pythongh-88050https://github.com/python/cpython/issues/88050
python#32073https://github.com/python/cpython/pull/32073
pythongh-93738https://github.com/python/cpython/issues/93738
python#97774https://github.com/python/cpython/pull/97774
pythongh-93357https://github.com/python/cpython/issues/93357
python#97896https://github.com/python/cpython/pull/97896
pythongh-95196https://github.com/python/cpython/issues/95196
pythonGH-96383https://github.com/python/cpython/pull/96383
pythongh-97758https://github.com/python/cpython/issues/97758
pythonGH-97759https://github.com/python/cpython/pull/97759
pythongh-74696https://github.com/python/cpython/issues/74696
pythonGH-94251https://github.com/python/cpython/pull/94251
pythongh-97661https://github.com/python/cpython/issues/97661
python#97662https://github.com/python/cpython/pull/97662
pythongh-87092https://github.com/python/cpython/issues/87092
pythonGH-97644https://github.com/python/cpython/pull/97644
pythonGH-96704https://github.com/python/cpython/issues/96704
python#96756https://github.com/python/cpython/pull/96756
pythongh-93738https://github.com/python/cpython/issues/93738
python#97778https://github.com/python/cpython/pull/97778
pythongh-97825https://github.com/python/cpython/issues/97825
python#97826https://github.com/python/cpython/pull/97826
python#97678https://github.com/python/cpython/pull/97678
mpagehttps://github.com/mpage
Oct 11, 2022 https://github.com/python/cpython/pull/96756#ref-commit-681e059
https://github.com/gvanrossum
https://github.com/kumaraditya303
https://github.com/mpage
pythonGH-96704https://github.com/python/cpython/issues/96704
: Add {Task,Handle}.get_context(), use it in call_excep…https://github.com/mpage/cpython/commit/681e059b0161321bc6dda64b43130921290c87c0
681e059https://github.com/mpage/cpython/commit/681e059b0161321bc6dda64b43130921290c87c0
python#96756https://github.com/python/cpython/pull/96756
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F96756
https://github.com/kumaraditya303
kumaraditya303 https://github.com/kumaraditya303
https://github.com/python/cpython/pull/96756/files/0ca502343b935365f6e0f7e477a667f0b93fc55b
https://github.com/1st1
1st1 https://github.com/1st1
https://github.com/asvetlov
asvetlov https://github.com/asvetlov
Please reload this pagehttps://github.com/python/cpython/pull/96756
https://github.com/gvanrossum
https://github.com/kumaraditya303
https://github.com/bedevere-bot
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.