René's URL Explorer Experiment


Title: bpo-43224: Implement PEP 646 changes to genericaliasobject.c by mrahtz · Pull Request #31019 · python/cpython · GitHub

Open Graph Title: bpo-43224: Implement PEP 646 changes to genericaliasobject.c by mrahtz · Pull Request #31019 · python/cpython

X Title: bpo-43224: Implement PEP 646 changes to genericaliasobject.c by mrahtz · Pull Request #31019 · python/cpython

Description: These are the parts of the old PR (#30398) relevant to starring tuples. This allows us to do things like *args: *tuple[int, *Ts] (where Ts is a TypeVarTuple). @gvanrossum Pradeep and I were wondering what the best way of representing a starred tuple would be, given that we'll also need a representation of a starred typing.Tuple for backport purposes. Should we try and make both *tuple[int] and *Tuple[int] refer to the same thing (I guess something we'd add to typing.py), or is it ok to have them refer to different things (as this PR currently assumes, creating a new native type for *tuple)? Until the PR with the grammar changes has been merged (#31018), the tests for this look a little awkward. Happy to wait until that PR has been merged to be 100% sure this is correct. @Fidget-Spinner Would you be happy to review this? (Also, could someone add the 'skip news' label? The news item is being added in the grammar PR.) Jelle suggests creating a separate news item for each PR, so I've added an item for this one. https://bugs.python.org/issue43224

Open Graph Description: These are the parts of the old PR (#30398) relevant to starring tuples. This allows us to do things like *args: *tuple[int, *Ts] (where Ts is a TypeVarTuple). @gvanrossum Pradeep and I were wonderi...

X Description: These are the parts of the old PR (#30398) relevant to starring tuples. This allows us to do things like *args: *tuple[int, *Ts] (where Ts is a TypeVarTuple). @gvanrossum Pradeep and I were wonderi...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c22d7afa-f2bb-97f5-c89e-2682bd8d47ca
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDF1E:1B1D69:1B01877:2535BBC:696AA93D
html-safe-noncee0f954b7894aafea3579dfafb0d29514bc838be3f5ed8b57c6b2da61e3163434
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjFFOjFCMUQ2OToxQjAxODc3OjI1MzVCQkM6Njk2QUE5M0QiLCJ2aXNpdG9yX2lkIjoiNzM2MjY2NDEzMDA3MTQwNjkwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6a7aa8d53e22eab875421061575c0a1b49c689d4093e52f49ffc30841bf769ac
hovercard-subject-tagpull_request:835360837
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/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/31019/files
twitter:imagehttps://avatars.githubusercontent.com/u/4431336?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/4431336?s=400&v=4
og:image:altThese are the parts of the old PR (#30398) relevant to starring tuples. This allows us to do things like *args: *tuple[int, *Ts] (where Ts is a TypeVarTuple). @gvanrossum Pradeep and I were wonderi...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None3eaf9b8cf1badcd7041a8ad480b9d9b28bea0ef1cc821ca9ff20f2cc7f4fe4b9
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasedd9a979046e6382bd084e2bd873bf65f797125ff
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/31019/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F31019%2Ffiles
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%2F31019%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
Reloadhttps://github.com/python/cpython/pull/31019/files
Reloadhttps://github.com/python/cpython/pull/31019/files
Reloadhttps://github.com/python/cpython/pull/31019/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/31019/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 pagehttps://github.com/python/cpython/pull/31019/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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Fidget-Spinnerhttps://github.com/Fidget-Spinner
python:mainhttps://github.com/python/cpython/tree/main
mrahtz:pep646-tuplehttps://github.com/mrahtz/cpython/tree/pep646-tuple
Conversation 49 https://github.com/python/cpython/pull/31019
Commits 19 https://github.com/python/cpython/pull/31019/commits
Checks 0 https://github.com/python/cpython/pull/31019/checks
Files changed https://github.com/python/cpython/pull/31019/files
Please reload this pagehttps://github.com/python/cpython/pull/31019/files
bpo-43224: Implement PEP 646 changes to genericaliasobject.c https://github.com/python/cpython/pull/31019/files#top
Show all changes 19 commits https://github.com/python/cpython/pull/31019/files
e8bb03b PEP 646: Implement changes to genericaliasobject.c mrahtz Jan 30, 2022 https://github.com/python/cpython/pull/31019/commits/e8bb03b9e92ef794167995d19d26e8bef58d2293
9cb2aec 📜🤖 Added by blurb_it. blurb-it[bot] Jan 30, 2022 https://github.com/python/cpython/pull/31019/commits/9cb2aec0a0872669ada4169fa6044ce16956b336
b3fa489 Swap an assignment and an INCREF to a NewRef mrahtz Jan 30, 2022 https://github.com/python/cpython/pull/31019/commits/b3fa489529eb98e139beef2a9ed0d6a75c2e5c8a
ec81d44 Fix cast whitespace mrahtz Jan 30, 2022 https://github.com/python/cpython/pull/31019/commits/ec81d4484c953277f454ba76523c7a8f5eeff950
968b3fb Add NULL check mrahtz Jan 30, 2022 https://github.com/python/cpython/pull/31019/commits/968b3fbacbaf825f4a9ef01a405f76a9be491b51
4aa94df Remove restriction that only `tuple` can be unpacked mrahtz Jan 30, 2022 https://github.com/python/cpython/pull/31019/commits/4aa94df3b0766ed971fde990edf7820539555535
c256bc9 Remove test which is no longer necessary mrahtz Jan 30, 2022 https://github.com/python/cpython/pull/31019/commits/c256bc99d9232d83f7aabc1dab4e70320a89e227
e4a72b4 Fix news mrahtz Feb 1, 2022 https://github.com/python/cpython/pull/31019/commits/e4a72b4bc4cc419da6a6e52956b1719940286085
742d283 Import suggestions from kumaraditya303 from previous PR mrahtz Feb 1, 2022 https://github.com/python/cpython/pull/31019/commits/742d283952f9ee0243f5f147b12b37ac57c67245
d4d97b3 Use public PyObject_GC_Track mrahtz Feb 1, 2022 https://github.com/python/cpython/pull/31019/commits/d4d97b3af0d8ccbf4d913ac5e677adceae3914b5
7f06e2a Use public PyObject_GC_UnTrack mrahtz Feb 1, 2022 https://github.com/python/cpython/pull/31019/commits/7f06e2a8dded808f716e4d0d138eef939fc94d9a
6bf3caa fix gc kumaraditya303 Feb 8, 2022 https://github.com/python/cpython/pull/31019/commits/6bf3caa0e7483b28f97802f02606a844c33bff57
06308d2 Merge pull request #6 from kumaraditya303/pep646-tuple mrahtz Feb 14, 2022 https://github.com/python/cpython/pull/31019/commits/06308d2f96af1407399a13066f04918d560eb8ab
e554309 Implement tp_clear; set StopIteration explicitly; add curly braces mrahtz Feb 14, 2022 https://github.com/python/cpython/pull/31019/commits/e55430911c2b952d424bb02632908c326fac52d6
eaf8083 Add more tests mrahtz Feb 14, 2022 https://github.com/python/cpython/pull/31019/commits/eaf8083518c27e6d9f00802d52bfee3d524fc95e
38dca54 Remove references to starred *tuples* specifically (since we removed … mrahtz Feb 15, 2022 https://github.com/python/cpython/pull/31019/commits/38dca54e5a2e94237fa4691e73287b642732e9fb
1102d27 Merge branch 'main' into pep646-tuple mrahtz Mar 10, 2022 https://github.com/python/cpython/pull/31019/commits/1102d27ecdef59ac04449e4c5955fb22e2585624
eda60f9 Merge branch 'main' into pep646-tuple mrahtz Mar 10, 2022 https://github.com/python/cpython/pull/31019/commits/eda60f9eb5da5e77b82b7b13c4ecb013d96b56be
5fe058e Merge branch 'main' into pep646-tuple mrahtz Mar 11, 2022 https://github.com/python/cpython/pull/31019/commits/5fe058ee8f12db9c3cf8a2f3908c4bd1c58dbd14
Clear filters https://github.com/python/cpython/pull/31019/files
Please reload this pagehttps://github.com/python/cpython/pull/31019/files
Please reload this pagehttps://github.com/python/cpython/pull/31019/files
test_genericalias.py https://github.com/python/cpython/pull/31019/files#diff-8e29b27c5ead543d31b10d6fa2991d5640e6d60c36ac7b7aa873712c4fe2f944
2022-01-30-20-32-40.bpo-43224.zqrQsj.rst https://github.com/python/cpython/pull/31019/files#diff-b38533d379264c6b71cd73462c6e66de801c4cc0f79fb42c6410683ebd323a26
genericaliasobject.c https://github.com/python/cpython/pull/31019/files#diff-828d12085a29364c67442b193bb62906e3469fbe21367499fd62817f98190014
Lib/test/test_genericalias.pyhttps://github.com/python/cpython/pull/31019/files#diff-8e29b27c5ead543d31b10d6fa2991d5640e6d60c36ac7b7aa873712c4fe2f944
View file https://github.com/mrahtz/cpython/blob/5fe058ee8f12db9c3cf8a2f3908c4bd1c58dbd14/Lib/test/test_genericalias.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/31019/{{ revealButtonHref }}
https://github.com/python/cpython/pull/31019/files#diff-8e29b27c5ead543d31b10d6fa2991d5640e6d60c36ac7b7aa873712c4fe2f944
https://github.com/python/cpython/pull/31019/files#diff-8e29b27c5ead543d31b10d6fa2991d5640e6d60c36ac7b7aa873712c4fe2f944
https://github.com/python/cpython/pull/31019/files#diff-8e29b27c5ead543d31b10d6fa2991d5640e6d60c36ac7b7aa873712c4fe2f944
https://github.com/python/cpython/pull/31019/files#diff-8e29b27c5ead543d31b10d6fa2991d5640e6d60c36ac7b7aa873712c4fe2f944
https://github.com/python/cpython/pull/31019/files#diff-8e29b27c5ead543d31b10d6fa2991d5640e6d60c36ac7b7aa873712c4fe2f944
https://github.com/python/cpython/pull/31019/files#diff-8e29b27c5ead543d31b10d6fa2991d5640e6d60c36ac7b7aa873712c4fe2f944
https://github.com/python/cpython/pull/31019/files#diff-8e29b27c5ead543d31b10d6fa2991d5640e6d60c36ac7b7aa873712c4fe2f944
https://github.com/python/cpython/pull/31019/files#diff-8e29b27c5ead543d31b10d6fa2991d5640e6d60c36ac7b7aa873712c4fe2f944
Misc/NEWS.d/next/Library/2022-01-30-20-32-40.bpo-43224.zqrQsj.rsthttps://github.com/python/cpython/pull/31019/files#diff-b38533d379264c6b71cd73462c6e66de801c4cc0f79fb42c6410683ebd323a26
View file https://github.com/mrahtz/cpython/blob/5fe058ee8f12db9c3cf8a2f3908c4bd1c58dbd14/Misc/NEWS.d/next/Library/2022-01-30-20-32-40.bpo-43224.zqrQsj.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/31019/{{ revealButtonHref }}
Objects/genericaliasobject.chttps://github.com/python/cpython/pull/31019/files#diff-828d12085a29364c67442b193bb62906e3469fbe21367499fd62817f98190014
View file https://github.com/mrahtz/cpython/blob/5fe058ee8f12db9c3cf8a2f3908c4bd1c58dbd14/Objects/genericaliasobject.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/31019/{{ revealButtonHref }}
https://github.com/python/cpython/pull/31019/files#diff-828d12085a29364c67442b193bb62906e3469fbe21367499fd62817f98190014
https://github.com/python/cpython/pull/31019/files#diff-828d12085a29364c67442b193bb62906e3469fbe21367499fd62817f98190014
https://github.com/python/cpython/pull/31019/files#diff-828d12085a29364c67442b193bb62906e3469fbe21367499fd62817f98190014
https://github.com/python/cpython/pull/31019/files#diff-828d12085a29364c67442b193bb62906e3469fbe21367499fd62817f98190014
https://github.com/python/cpython/pull/31019/files#diff-828d12085a29364c67442b193bb62906e3469fbe21367499fd62817f98190014
Please reload this pagehttps://github.com/python/cpython/pull/31019/files
Please reload this pagehttps://github.com/python/cpython/pull/31019/files
Please reload this pagehttps://github.com/python/cpython/pull/31019/files
https://github.com/python/cpython/pull/31019/files#diff-828d12085a29364c67442b193bb62906e3469fbe21367499fd62817f98190014
https://github.com/python/cpython/pull/31019/files#diff-828d12085a29364c67442b193bb62906e3469fbe21367499fd62817f98190014
https://github.com/python/cpython/pull/31019/files#diff-828d12085a29364c67442b193bb62906e3469fbe21367499fd62817f98190014
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.