| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:d94f8ac5-58f6-2f09-8849-44262052a5b6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9184:1D6204:3C34C4:4EAA1A:6A5B23C3 |
| html-safe-nonce | 7b3befc5177ed7aef00a13e945079ce54802f3bd2e7658ad8db3530ab1b580eb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTg0OjFENjIwNDozQzM0QzQ6NEVBQTFBOjZBNUIyM0MzIiwidmlzaXRvcl9pZCI6IjI1MzU1MzYyMzQxOTU1MjY1OTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c2a754c74b10c3bdb54a4b075a187d20805996ee8d861889f64e0ef57aa61cfb |
| hovercard-subject-tag | pull_request:850577495 |
| 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 | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/31313/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/77466a3d5bb0cf7591e8ce69e48eb6447706aeb98a755ed3d75fd5cc9dffb3a9/python/cpython/pull/31313 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/77466a3d5bb0cf7591e8ce69e48eb6447706aeb98a755ed3d75fd5cc9dffb3a9/python/cpython/pull/31313 |
| og:image:alt | Add __cancel_requested__ property as discussed in #31270.
cancel() returns False is the task was previously cancelled already.
No test is failing during the cancel() behavior change. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | asvetlov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-cache |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/31313#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F31313 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| 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 |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| 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/enterprise/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%2F31313 |
|
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 |
| Reload | https://github.com/python/cpython/pull/31313 |
| Reload | https://github.com/python/cpython/pull/31313 |
| Reload | https://github.com/python/cpython/pull/31313 |
| Please reload this page | https://github.com/python/cpython/pull/31313 |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/31313 |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
34.9k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
73.8k
| 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.3k
| 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 |
| asvetlov | https://github.com/asvetlov |
| main | https://github.com/python/cpython/tree/main |
| task-cancel | https://github.com/python/cpython/tree/task-cancel |
| Conversation | https://github.com/python/cpython/pull/31313 |
| Commits2 (2) | https://github.com/python/cpython/pull/31313/commits |
| Checks | https://github.com/python/cpython/pull/31313/checks |
| Files changed | https://github.com/python/cpython/pull/31313/files |
| Implement asyncio.Task.__cancel_requested__ | https://github.com/python/cpython/pull/31313#top |
| asvetlov | https://github.com/asvetlov |
| main | https://github.com/python/cpython/tree/main |
| task-cancel | https://github.com/python/cpython/tree/task-cancel |
|
| https://github.com/asvetlov |
| asvetlov | https://github.com/asvetlov |
| Feb 13, 2022 | https://github.com/python/cpython/pull/31313#issue-1135708013 |
| #31270 | https://github.com/python/cpython/pull/31270 |
| Please reload this page | https://github.com/python/cpython/pull/31313 |
| asvetlov | https://github.com/asvetlov |
| February 13, 2022 12:35 | https://github.com/python/cpython/pull/31313#commits-pushed-d1ea1d3 |
|
| https://github.com/asvetlov |
| Implement task.__cancel_requested__ property | https://github.com/python/cpython/pull/31313/commits/d1ea1d3bbe72f135f1623ee81bd70c87d83c1e8b |
| d1ea1d3 | https://github.com/python/cpython/pull/31313/commits/d1ea1d3bbe72f135f1623ee81bd70c87d83c1e8b |
|
| https://github.com/asvetlov |
| Add test | https://github.com/python/cpython/pull/31313/commits/26a0f1056a738c2ec7a9ed8f06239c3d9894d30d |
| 26a0f10 | https://github.com/python/cpython/pull/31313/commits/26a0f1056a738c2ec7a9ed8f06239c3d9894d30d |
| https://github.com/asvetlov |
| asvetlov | https://github.com/asvetlov |
| 1st1 | https://github.com/1st1 |
| gvanrossum | https://github.com/gvanrossum |
| iritkatriel | https://github.com/iritkatriel |
| February 13, 2022 11:38 | https://github.com/python/cpython/pull/31313#event-6060854930 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Feb 13, 2022 | https://github.com/python/cpython/pull/31313#event-6060855066 |
| https://github.com/the-knights-who-say-ni |
| the-knights-who-say-ni | https://github.com/the-knights-who-say-ni |
|
CLA signed
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22 |
| Feb 13, 2022 | https://github.com/python/cpython/pull/31313#event-6060855104 |
| https://github.com/asvetlov |
| asvetlov | https://github.com/asvetlov |
| February 13, 2022 11:38 | https://github.com/python/cpython/pull/31313#event-6060855244 |
| https://github.com/asvetlov |
| asvetlov | https://github.com/asvetlov |
| Feb 13, 2022 | https://github.com/python/cpython/pull/31313#issuecomment-1038053483 |
| Please reload this page | https://github.com/python/cpython/pull/31313 |
| https://github.com/gvanrossum |
| gvanrossum | https://github.com/gvanrossum |
|
Feb 13, 2022
| https://github.com/python/cpython/pull/31313#pullrequestreview-881035547 |
|
View reviewed changes
| https://github.com/python/cpython/pull/31313/files/26a0f1056a738c2ec7a9ed8f06239c3d9894d30d |
| gvanrossum | https://github.com/gvanrossum |
| https://github.com/python/cpython/pull/31313#pullrequestreview-881035547 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/31313 |
| https://github.com/gvanrossum |
| gvanrossum | https://github.com/gvanrossum |
| Feb 14, 2022 | https://github.com/python/cpython/pull/31313#issuecomment-1038491123 |
| @asvetlov | https://github.com/asvetlov |
| Please reload this page | https://github.com/python/cpython/pull/31313 |
| https://github.com/gvanrossum |
| gvanrossum | https://github.com/gvanrossum |
| Feb 14, 2022 | https://github.com/python/cpython/pull/31313#issuecomment-1038519057 |
| @asvetlov | https://github.com/asvetlov |
| Please reload this page | https://github.com/python/cpython/pull/31313 |
| https://github.com/gvanrossum |
| gvanrossum | https://github.com/gvanrossum |
| Feb 14, 2022 | https://github.com/python/cpython/pull/31313#issuecomment-1038562260 |
| Please reload this page | https://github.com/python/cpython/pull/31313 |
| https://github.com/gvanrossum |
| gvanrossum | https://github.com/gvanrossum |
| Feb 14, 2022 | https://github.com/python/cpython/pull/31313#issuecomment-1039386469 |
| @asvetlov | https://github.com/asvetlov |
| @agronholm | https://github.com/agronholm |
| Please reload this page | https://github.com/python/cpython/pull/31313 |
| gvanrossum | https://github.com/gvanrossum |
|
Feb 14, 2022
| https://github.com/python/cpython/pull/31313#ref-commit-77ec0e4 |
|
| https://github.com/gvanrossum |
| Add an API to Task to manage 'cancel_requested' flag | https://github.com/gvanrossum/cpython/commit/77ec0e42b3fcd8a928ab89651707d6384971add7 |
| 77ec0e4 | https://github.com/gvanrossum/cpython/commit/77ec0e42b3fcd8a928ab89651707d6384971add7 |
| pythonGH-31313 | https://github.com/python/cpython/pull/31313 |
| @asvetlov | https://github.com/asvetlov |
| https://github.com/gvanrossum |
| gvanrossum | https://github.com/gvanrossum |
| Feb 14, 2022 | https://github.com/python/cpython/pull/31313#issuecomment-1039476293 |
| @asvetlov | https://github.com/asvetlov |
| GH-31270 | https://github.com/python/cpython/pull/31270 |
| Please reload this page | https://github.com/python/cpython/pull/31313 |
| https://github.com/gvanrossum |
| gvanrossum | https://github.com/gvanrossum |
| Feb 14, 2022 | https://github.com/python/cpython/pull/31313#event-6069698742 |
| https://github.com/gvanrossum |
| gvanrossum | https://github.com/gvanrossum |
|
Feb 14, 2022
| https://github.com/python/cpython/pull/31313#ref-pullrequest-1131520053 |
|
bpo-46752: Introduce task groups in asyncio
#31270
| https://github.com/python/cpython/pull/31270 |
| https://github.com/asvetlov |
| asvetlov | https://github.com/asvetlov |
| Feb 15, 2022 | https://github.com/python/cpython/pull/31313#issuecomment-1040238124 |
| @gvanrossum | https://github.com/gvanrossum |
| Please reload this page | https://github.com/python/cpython/pull/31313 |
| https://github.com/zware |
| zware | https://github.com/zware |
| May 6, 2022 14:44 | https://github.com/python/cpython/pull/31313#event-6564143227 |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F31313 |
|
| https://github.com/gvanrossum |
|
gvanrossum
| https://github.com/gvanrossum |
|
| https://github.com/python/cpython/pull/31313/files/26a0f1056a738c2ec7a9ed8f06239c3d9894d30d |
|
| https://github.com/1st1 |
|
1st1
| https://github.com/1st1 |
|
| https://github.com/iritkatriel |
|
iritkatriel
| https://github.com/iritkatriel |
|
| https://github.com/kumaraditya303 |
|
kumaraditya303
| https://github.com/kumaraditya303 |
|
| https://github.com/willingc |
|
willingc
| https://github.com/willingc |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Please reload this page | https://github.com/python/cpython/pull/31313 |
|
| https://github.com/asvetlov |
|
| https://github.com/gvanrossum |
|
| https://github.com/the-knights-who-say-ni |
|
| https://github.com/bedevere-bot |
|
| 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 |