| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:5e4c936c-062b-72cf-d7af-4f3596991a91 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8F00:201472:495D74:678754:696A0C78 |
| html-safe-nonce | 1c0b26ae4dd2132b58c6c961313e861ccb52c0d1eeba50d0df17248cc7fb89b2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjAwOjIwMTQ3Mjo0OTVENzQ6Njc4NzU0OjY5NkEwQzc4IiwidmlzaXRvcl9pZCI6IjQ5MDc4ODM3MDY3MTA2MjU0MDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b584e2ab2bf51827cce0705d78e9a7eb636f67822684d08b5ed26f4e4689bfc2 |
| hovercard-subject-tag | pull_request:1052581324 |
| 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 | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/96756/files |
| twitter:image | https://avatars.githubusercontent.com/u/2894642?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/2894642?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595 |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7266b2d935baa1c6474b16dd9feaa5ca30607261 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/96756/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F96756%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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%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 |
| Reload | https://github.com/python/cpython/pull/96756/files |
| Reload | https://github.com/python/cpython/pull/96756/files |
| Reload | https://github.com/python/cpython/pull/96756/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/96756/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 page | https://github.com/python/cpython/pull/96756/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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| gvanrossum | https://github.com/gvanrossum |
| python:main | https://github.com/python/cpython/tree/main |
| gvanrossum:exc-handler-context | https://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 page | https://github.com/python/cpython/pull/96756/files |
|
GH-96704: Add task.get_context(), use it in call_exception_handler()
| https://github.com/python/cpython/pull/96756/files#top |
|
Show all changes
7 commits
| https://github.com/python/cpython/pull/96756/files |
|
1d2d081
GH-96704: Add task.get_context(), use it in call_exception_handler()
gvanrossum Sep 11, 2022
| https://github.com/python/cpython/pull/96756/commits/1d2d0814a7733c2da1e17342aaf551fef4a711ff |
|
9fbc1d8
add two tests
kumaraditya303 Sep 17, 2022
| https://github.com/python/cpython/pull/96756/commits/9fbc1d8f4bc16c0da6b92e831a8b454bc5d34230 |
|
bc3000b
📜🤖 Added by blurb_it.
blurb-it[bot] Sep 18, 2022
| https://github.com/python/cpython/pull/96756/commits/bc3000beba2ff07eada11cb82738965b63fec952 |
|
bcd1a4a
Also look in handle for contextvars
gvanrossum Oct 4, 2022
| https://github.com/python/cpython/pull/96756/commits/bcd1a4a0bc72b9299a24fb671397f03621090e9f |
|
d9ccfe3
Update NEWS
gvanrossum Oct 4, 2022
| https://github.com/python/cpython/pull/96756/commits/d9ccfe3822a69ee370ff9cf03a5189e0fe6e165c |
|
a362fc0
Document the {Task,Handle}.get_context() methods
gvanrossum Oct 4, 2022
| https://github.com/python/cpython/pull/96756/commits/a362fc0e22ce3cdfd688c197b061a0fcfe81e887 |
|
0ca5023
Document change for exception handler
gvanrossum Oct 4, 2022
| https://github.com/python/cpython/pull/96756/commits/0ca502343b935365f6e0f7e477a667f0b93fc55b |
|
Clear filters
| https://github.com/python/cpython/pull/96756/files |
| Please reload this page | https://github.com/python/cpython/pull/96756/files |
| Please reload this page | https://github.com/python/cpython/pull/96756/files |
|
asyncio-eventloop.rst
| https://github.com/python/cpython/pull/96756/files#diff-afc9fa8b85212e4ea584ce77305955d6600c58f10e0bf2c04e4153ee2d204652 |
|
asyncio-task.rst
| https://github.com/python/cpython/pull/96756/files#diff-5e9a5bb933b1bd1d6092f7e5adb5c06da7a6792e0597f55f911245acacfce7a7 |
|
base_events.py
| https://github.com/python/cpython/pull/96756/files#diff-7962e1627bc1bfbce13bef0be78d5ef7fc962f99bbc524a199ef489852ca1344 |
|
events.py
| https://github.com/python/cpython/pull/96756/files#diff-05b057af187459b133df09e1d12385ac3c3735d3981c9f6109c754af0020e8c3 |
|
tasks.py
| https://github.com/python/cpython/pull/96756/files#diff-429f4ed1e0f89ea2c92e2a8e8548ea8ae1a3d528979554fbfa4c38329e951529 |
|
test_futures2.py
| https://github.com/python/cpython/pull/96756/files#diff-f2f40e1c2d0b5f6342cdd3f8aac482cd8b70b01b607b4dddea5d65b549af00c2 |
|
test_tasks.py
| https://github.com/python/cpython/pull/96756/files#diff-ef1c83c981ac721906ba3b05e123351be23dcfb59e92d0aeb6f4033db9cdd8c8 |
|
2022-09-18-04-51-30.gh-issue-96704.DmamRX.rst
| https://github.com/python/cpython/pull/96756/files#diff-f0d2cec4cd16ca3bb1dd62ffe8f18b0b7ae4af66ac9e11722c1f41d90d94057a |
|
_asynciomodule.c
| https://github.com/python/cpython/pull/96756/files#diff-6bd9e39980b88a721d902bcd915bbb3f24762f7f253430c45e52c42a2c5afd01 |
|
_asynciomodule.c.h
| https://github.com/python/cpython/pull/96756/files#diff-a19e0541aa4b8b56146c5d6e761608df7f2e8afeffaa8c3af930b17f25901a3c |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L367 |
| Doc/library/asyncio-eventloop.rst | https://github.com/python/cpython/pull/96756/files#diff-afc9fa8b85212e4ea584ce77305955d6600c58f10e0bf2c04e4153ee2d204652 |
|
View file
| https://github.com/gvanrossum/cpython/blob/0ca502343b935365f6e0f7e477a667f0b93fc55b/Doc/library/asyncio-eventloop.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/96756/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/96756/files#diff-afc9fa8b85212e4ea584ce77305955d6600c58f10e0bf2c04e4153ee2d204652 |
|
| https://github.com/python/cpython/pull/96756/files#diff-afc9fa8b85212e4ea584ce77305955d6600c58f10e0bf2c04e4153ee2d204652 |
|
| https://github.com/python/cpython/pull/96756/files#diff-afc9fa8b85212e4ea584ce77305955d6600c58f10e0bf2c04e4153ee2d204652 |
|
| https://github.com/python/cpython/pull/96756/files#diff-afc9fa8b85212e4ea584ce77305955d6600c58f10e0bf2c04e4153ee2d204652 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L367 |
| Doc/library/asyncio-task.rst | https://github.com/python/cpython/pull/96756/files#diff-5e9a5bb933b1bd1d6092f7e5adb5c06da7a6792e0597f55f911245acacfce7a7 |
|
View file
| https://github.com/gvanrossum/cpython/blob/0ca502343b935365f6e0f7e477a667f0b93fc55b/Doc/library/asyncio-task.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/96756/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/96756/files#diff-5e9a5bb933b1bd1d6092f7e5adb5c06da7a6792e0597f55f911245acacfce7a7 |
|
| https://github.com/python/cpython/pull/96756/files#diff-5e9a5bb933b1bd1d6092f7e5adb5c06da7a6792e0597f55f911245acacfce7a7 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L369 |
| Lib/asyncio/base_events.py | https://github.com/python/cpython/pull/96756/files#diff-7962e1627bc1bfbce13bef0be78d5ef7fc962f99bbc524a199ef489852ca1344 |
|
View file
| https://github.com/gvanrossum/cpython/blob/0ca502343b935365f6e0f7e477a667f0b93fc55b/Lib/asyncio/base_events.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/96756/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/96756/files#diff-7962e1627bc1bfbce13bef0be78d5ef7fc962f99bbc524a199ef489852ca1344 |
|
| https://github.com/python/cpython/pull/96756/files#diff-7962e1627bc1bfbce13bef0be78d5ef7fc962f99bbc524a199ef489852ca1344 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L369 |
| Lib/asyncio/events.py | https://github.com/python/cpython/pull/96756/files#diff-05b057af187459b133df09e1d12385ac3c3735d3981c9f6109c754af0020e8c3 |
|
View file
| https://github.com/gvanrossum/cpython/blob/0ca502343b935365f6e0f7e477a667f0b93fc55b/Lib/asyncio/events.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/96756/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/96756/files#diff-05b057af187459b133df09e1d12385ac3c3735d3981c9f6109c754af0020e8c3 |
|
| https://github.com/python/cpython/pull/96756/files#diff-05b057af187459b133df09e1d12385ac3c3735d3981c9f6109c754af0020e8c3 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L369 |
| Lib/asyncio/tasks.py | https://github.com/python/cpython/pull/96756/files#diff-429f4ed1e0f89ea2c92e2a8e8548ea8ae1a3d528979554fbfa4c38329e951529 |
|
View file
| https://github.com/gvanrossum/cpython/blob/0ca502343b935365f6e0f7e477a667f0b93fc55b/Lib/asyncio/tasks.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/96756/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/96756/files#diff-429f4ed1e0f89ea2c92e2a8e8548ea8ae1a3d528979554fbfa4c38329e951529 |
|
| https://github.com/python/cpython/pull/96756/files#diff-429f4ed1e0f89ea2c92e2a8e8548ea8ae1a3d528979554fbfa4c38329e951529 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L370 |
| Lib/test/test_asyncio/test_futures2.py | https://github.com/python/cpython/pull/96756/files#diff-f2f40e1c2d0b5f6342cdd3f8aac482cd8b70b01b607b4dddea5d65b549af00c2 |
|
View file
| https://github.com/gvanrossum/cpython/blob/0ca502343b935365f6e0f7e477a667f0b93fc55b/Lib/test/test_asyncio/test_futures2.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/96756/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/96756/files#diff-f2f40e1c2d0b5f6342cdd3f8aac482cd8b70b01b607b4dddea5d65b549af00c2 |
|
| https://github.com/python/cpython/pull/96756/files#diff-f2f40e1c2d0b5f6342cdd3f8aac482cd8b70b01b607b4dddea5d65b549af00c2 |
|
| https://github.com/python/cpython/pull/96756/files#diff-f2f40e1c2d0b5f6342cdd3f8aac482cd8b70b01b607b4dddea5d65b549af00c2 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L370 |
| Lib/test/test_asyncio/test_tasks.py | https://github.com/python/cpython/pull/96756/files#diff-ef1c83c981ac721906ba3b05e123351be23dcfb59e92d0aeb6f4033db9cdd8c8 |
|
View file
| https://github.com/gvanrossum/cpython/blob/0ca502343b935365f6e0f7e477a667f0b93fc55b/Lib/test/test_asyncio/test_tasks.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/96756/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/96756/files#diff-ef1c83c981ac721906ba3b05e123351be23dcfb59e92d0aeb6f4033db9cdd8c8 |
|
| https://github.com/python/cpython/pull/96756/files#diff-ef1c83c981ac721906ba3b05e123351be23dcfb59e92d0aeb6f4033db9cdd8c8 |
| Misc/NEWS.d/next/Library/2022-09-18-04-51-30.gh-issue-96704.DmamRX.rst | https://github.com/python/cpython/pull/96756/files#diff-f0d2cec4cd16ca3bb1dd62ffe8f18b0b7ae4af66ac9e11722c1f41d90d94057a |
|
View file
| https://github.com/gvanrossum/cpython/blob/0ca502343b935365f6e0f7e477a667f0b93fc55b/Misc/NEWS.d/next/Library/2022-09-18-04-51-30.gh-issue-96704.DmamRX.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/96756/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L371 |
| Modules/_asynciomodule.c | https://github.com/python/cpython/pull/96756/files#diff-6bd9e39980b88a721d902bcd915bbb3f24762f7f253430c45e52c42a2c5afd01 |
|
View file
| https://github.com/gvanrossum/cpython/blob/0ca502343b935365f6e0f7e477a667f0b93fc55b/Modules/_asynciomodule.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/96756/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/96756/files#diff-6bd9e39980b88a721d902bcd915bbb3f24762f7f253430c45e52c42a2c5afd01 |
|
| https://github.com/python/cpython/pull/96756/files#diff-6bd9e39980b88a721d902bcd915bbb3f24762f7f253430c45e52c42a2c5afd01 |
|
| https://github.com/python/cpython/pull/96756/files#diff-6bd9e39980b88a721d902bcd915bbb3f24762f7f253430c45e52c42a2c5afd01 |
|
| https://github.com/python/cpython/pull/96756/files#diff-6bd9e39980b88a721d902bcd915bbb3f24762f7f253430c45e52c42a2c5afd01 |
| Modules/clinic/_asynciomodule.c.h | https://github.com/python/cpython/pull/96756/files#diff-a19e0541aa4b8b56146c5d6e761608df7f2e8afeffaa8c3af930b17f25901a3c |
|
View file
| https://github.com/gvanrossum/cpython/blob/0ca502343b935365f6e0f7e477a667f0b93fc55b/Modules/clinic/_asynciomodule.c.h |
|
Open in desktop
| https://desktop.github.com |
| how customized files appear on GitHub | https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github |
| Please reload this page | https://github.com/python/cpython/pull/96756/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |