René's URL Explorer Experiment


Title: bpo-46752: Introduce task groups in asyncio by gvanrossum · Pull Request #31270 · python/cpython · GitHub

Open Graph Title: bpo-46752: Introduce task groups in asyncio by gvanrossum · Pull Request #31270 · python/cpython

X Title: bpo-46752: Introduce task groups in asyncio by gvanrossum · Pull Request #31270 · python/cpython

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

Open Graph Description: This is EdgeDB's TaskGroup class, adapted for Python 3.11. In the individual commits you can see how I evolved this from the version in EdgeDB. Here's a to-do list: Figure out why in test...

X Description: This is EdgeDB's TaskGroup class, adapted for Python 3.11. In the individual commits you can see how I evolved this from the version in EdgeDB. Here's a to-do list: Figure out why...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:36da84b9-5644-f46f-bbff-1862aee72f2e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBC42:276126:CE238:10EF18:6A5B1417
html-safe-nonceeb81d5c7699bb3c40774c3444c1fe993abb0405489d1ae823372e643c2af75f0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzQyOjI3NjEyNjpDRTIzODoxMEVGMTg6NkE1QjE0MTciLCJ2aXNpdG9yX2lkIjoiNTkwMTExNjc0NjcyMDAyMzU3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5ba5eec2f08fd4470b5cb63057b947eccb2088914fb282b71db985f1300c9709
hovercard-subject-tagpull_request:846617192
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/31270/commits
twitter:imagehttps://opengraph.githubassets.com/77ab9ff24ca11a8c76dbb204d97736b10506c26e0301d715ab3ca4debfc41634/python/cpython/pull/31270
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/77ab9ff24ca11a8c76dbb204d97736b10506c26e0301d715ab3ca4debfc41634/python/cpython/pull/31270
og:image:altThis is EdgeDB's TaskGroup class, adapted for Python 3.11. In the individual commits you can see how I evolved this from the version in EdgeDB. Here's a to-do list: Figure out why in test...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegvanrossum
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
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
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/31270/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F31270%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
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%2F31270%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/31270/commits
Reloadhttps://github.com/python/cpython/pull/31270/commits
Reloadhttps://github.com/python/cpython/pull/31270/commits
Please reload this pagehttps://github.com/python/cpython/pull/31270/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/31270/commits
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
gvanrossumhttps://github.com/gvanrossum
python:mainhttps://github.com/python/cpython/tree/main
gvanrossum:taskgroupshttps://github.com/gvanrossum/cpython/tree/taskgroups
Conversationhttps://github.com/python/cpython/pull/31270
Commits24 (24)https://github.com/python/cpython/pull/31270/commits
Checkshttps://github.com/python/cpython/pull/31270/checks
Files changedhttps://github.com/python/cpython/pull/31270/files
bpo-46752: Introduce task groups in asynciohttps://github.com/python/cpython/pull/31270/commits#top
gvanrossumhttps://github.com/gvanrossum
python:mainhttps://github.com/python/cpython/tree/main
gvanrossum:taskgroupshttps://github.com/gvanrossum/cpython/tree/taskgroups
Integrate task groups from EdgeDbhttps://github.com/python/cpython/pull/31270/commits/7edee0b2ae2bc8fcddf677961f279b59d4bf720d
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
7edee0bhttps://github.com/python/cpython/pull/31270/commits/7edee0b2ae2bc8fcddf677961f279b59d4bf720d
https://github.com/python/cpython/tree/7edee0b2ae2bc8fcddf677961f279b59d4bf720d
Make test_taskgroups.py run and passhttps://github.com/python/cpython/pull/31270/commits/f4953754aa507b92c4dfdf1306d57ceee25365ae
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
f495375https://github.com/python/cpython/pull/31270/commits/f4953754aa507b92c4dfdf1306d57ceee25365ae
https://github.com/python/cpython/tree/f4953754aa507b92c4dfdf1306d57ceee25365ae
Rename taskgroup to taskgroups in the test codehttps://github.com/python/cpython/pull/31270/commits/a87275a694fd4e40077472b7df92070584ea4e94
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
a87275ahttps://github.com/python/cpython/pull/31270/commits/a87275a694fd4e40077472b7df92070584ea4e94
https://github.com/python/cpython/tree/a87275a694fd4e40077472b7df92070584ea4e94
Export TaskGroup from asyncio; remove __future__ importhttps://github.com/python/cpython/pull/31270/commits/4df0accad4163881765d25bc454d24540de8e3cd
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
4df0acchttps://github.com/python/cpython/pull/31270/commits/4df0accad4163881765d25bc454d24540de8e3cd
https://github.com/python/cpython/tree/4df0accad4163881765d25bc454d24540de8e3cd
Only keep the newest _is_base_error() and _task_cancel()https://github.com/python/cpython/pull/31270/commits/56db921d7278672cba9a6e4aac9b61a690a75fb9
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
56db921https://github.com/python/cpython/pull/31270/commits/56db921d7278672cba9a6e4aac9b61a690a75fb9
https://github.com/python/cpython/tree/56db921d7278672cba9a6e4aac9b61a690a75fb9
Get rid of MultiError in favor of ExceptionGrouphttps://github.com/python/cpython/pull/31270/commits/500581eb0c788043756ff1127160e8c5827cb1d2
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
500581ehttps://github.com/python/cpython/pull/31270/commits/500581eb0c788043756ff1127160e8c5827cb1d2
https://github.com/python/cpython/tree/500581eb0c788043756ff1127160e8c5827cb1d2
Add TaskGroupError to __all__https://github.com/python/cpython/pull/31270/commits/4843e94dfc00350de44e0612e704a63dcd162c97
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
4843e94https://github.com/python/cpython/pull/31270/commits/4843e94dfc00350de44e0612e704a63dcd162c97
https://github.com/python/cpython/tree/4843e94dfc00350de44e0612e704a63dcd162c97
Avoid DeprecationWarning: There is no current event loophttps://github.com/python/cpython/pull/31270/commits/63e712dc2d381f9b91cb5fe2644b17823671952a
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
63e712dhttps://github.com/python/cpython/pull/31270/commits/63e712dc2d381f9b91cb5fe2644b17823671952a
https://github.com/python/cpython/tree/63e712dc2d381f9b91cb5fe2644b17823671952a
Prevent warning "test altered the execution environment"https://github.com/python/cpython/pull/31270/commits/d233dd199ecfeb36fcd230589b4f435da820d9b2
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
d233dd1https://github.com/python/cpython/pull/31270/commits/d233dd199ecfeb36fcd230589b4f435da820d9b2
https://github.com/python/cpython/tree/d233dd199ecfeb36fcd230589b4f435da820d9b2
Get rid of custom TaskGroupErrorhttps://github.com/python/cpython/pull/31270/commits/af574d58300b8920127cca23d8f1878f5d614b3b
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
af574d5https://github.com/python/cpython/pull/31270/commits/af574d58300b8920127cca23d8f1878f5d614b3b
https://github.com/python/cpython/tree/af574d58300b8920127cca23d8f1878f5d614b3b
Update comments explaining why test 21 doesn't workhttps://github.com/python/cpython/pull/31270/commits/299f3663dcd0c0e5174d3f29e8a03681335b40d6
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
299f366https://github.com/python/cpython/pull/31270/commits/299f3663dcd0c0e5174d3f29e8a03681335b40d6
https://github.com/python/cpython/tree/299f3663dcd0c0e5174d3f29e8a03681335b40d6
Add tests showing that 'plain' BaseExceptions workhttps://github.com/python/cpython/pull/31270/commits/9de3c878d1cba85bb5a21d93a22d2bbc50e12c2a
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
9de3c87https://github.com/python/cpython/pull/31270/commits/9de3c878d1cba85bb5a21d93a22d2bbc50e12c2a
https://github.com/python/cpython/tree/9de3c878d1cba85bb5a21d93a22d2bbc50e12c2a
Allow creating new tasks while __aexit__ is waitinghttps://github.com/python/cpython/pull/31270/commits/0e1355d55509d083ec911995ef2d7837ff888017
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
0e1355dhttps://github.com/python/cpython/pull/31270/commits/0e1355d55509d083ec911995ef2d7837ff888017
https://github.com/python/cpython/tree/0e1355d55509d083ec911995ef2d7837ff888017
Add an API to Task to manage 'cancel_requested' flaghttps://github.com/python/cpython/pull/31270/commits/77ec0e42b3fcd8a928ab89651707d6384971add7
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
77ec0e4https://github.com/python/cpython/pull/31270/commits/77ec0e42b3fcd8a928ab89651707d6384971add7
https://github.com/python/cpython/tree/77ec0e42b3fcd8a928ab89651707d6384971add7
Add tests for .cancelling() and .uncancel()https://github.com/python/cpython/pull/31270/commits/17b64b54ad9dd929c2ae9250a05354d0c289e949
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
17b64b5https://github.com/python/cpython/pull/31270/commits/17b64b54ad9dd929c2ae9250a05354d0c289e949
https://github.com/python/cpython/tree/17b64b54ad9dd929c2ae9250a05354d0c289e949
Merge remote-tracking branch 'origin/main' into taskgroupshttps://github.com/python/cpython/pull/31270/commits/5e3f4b952eb2dd0139dae19e8858d5cc1397c20e
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
5e3f4b9https://github.com/python/cpython/pull/31270/commits/5e3f4b952eb2dd0139dae19e8858d5cc1397c20e
https://github.com/python/cpython/tree/5e3f4b952eb2dd0139dae19e8858d5cc1397c20e
📜🤖 Added by blurb_it.https://github.com/python/cpython/pull/31270/commits/0b9bccd71d9b3dc0e05850e7792fa42933696b11
https://github.com/apps/blurb-it
blurb-it[bot]https://github.com/python/cpython/commits?author=blurb-it%5Bbot%5D
0b9bccdhttps://github.com/python/cpython/pull/31270/commits/0b9bccd71d9b3dc0e05850e7792fa42933696b11
https://github.com/python/cpython/tree/0b9bccd71d9b3dc0e05850e7792fa42933696b11
Replace EdgeDb copyright with a simpler attributionhttps://github.com/python/cpython/pull/31270/commits/137ebe6de92a3c7995c434e01f0fe501ed441123
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
137ebe6https://github.com/python/cpython/pull/31270/commits/137ebe6de92a3c7995c434e01f0fe501ed441123
https://github.com/python/cpython/tree/137ebe6de92a3c7995c434e01f0fe501ed441123
Use task.cancelling() in task repr instead of access to private attributeshttps://github.com/python/cpython/pull/31270/commits/f693c1c989ad732aed0e742a6171c8ef2448068b
https://github.com/asvetlov
asvetlovhttps://github.com/python/cpython/commits?author=asvetlov
f693c1chttps://github.com/python/cpython/pull/31270/commits/f693c1c989ad732aed0e742a6171c8ef2448068b
https://github.com/python/cpython/tree/f693c1c989ad732aed0e742a6171c8ef2448068b
Change the internal importshttps://github.com/python/cpython/pull/31270/commits/b83734cf1efec6cce890c3f3ae65892e1612bb36
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
b83734chttps://github.com/python/cpython/pull/31270/commits/b83734cf1efec6cce890c3f3ae65892e1612bb36
https://github.com/python/cpython/tree/b83734cf1efec6cce890c3f3ae65892e1612bb36
Avoid needing self.loop in testhttps://github.com/python/cpython/pull/31270/commits/de3d82012d3d97bed8ea50e7081404eb51ae8923
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
de3d820https://github.com/python/cpython/pull/31270/commits/de3d82012d3d97bed8ea50e7081404eb51ae8923
https://github.com/python/cpython/tree/de3d82012d3d97bed8ea50e7081404eb51ae8923
Make test 14 more robusthttps://github.com/python/cpython/pull/31270/commits/9712241fed0c203fc6a1612a0040b68fb7779481
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
9712241https://github.com/python/cpython/pull/31270/commits/9712241fed0c203fc6a1612a0040b68fb7779481
https://github.com/python/cpython/tree/9712241fed0c203fc6a1612a0040b68fb7779481
Update Lib/asyncio/taskgroups.pyhttps://github.com/python/cpython/pull/31270/commits/b3d4d18f04780a88193257d3f62f7f9e284d91a4
b3d4d18https://github.com/python/cpython/pull/31270/commits/b3d4d18f04780a88193257d3f62f7f9e284d91a4
https://github.com/python/cpython/tree/b3d4d18f04780a88193257d3f62f7f9e284d91a4
Update Lib/test/test_asyncio/test_taskgroups.pyhttps://github.com/python/cpython/pull/31270/commits/c1e5d64a27325f3c08668aa5d255038b991bd30e
c1e5d64https://github.com/python/cpython/pull/31270/commits/c1e5d64a27325f3c08668aa5d255038b991bd30e
https://github.com/python/cpython/tree/c1e5d64a27325f3c08668aa5d255038b991bd30e
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.