| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:163ad8ff-1ee3-b1d0-3d76-82c1b2c4680d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E7E4:2F0D9B:C7E69A:117B62C:696A37AF |
| html-safe-nonce | b3285caa8498505f135847e86675c7647783c27b4784a5d6e96457460e0fd23a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0U0OjJGMEQ5QjpDN0U2OUE6MTE3QjYyQzo2OTZBMzdBRiIsInZpc2l0b3JfaWQiOiI3MTY0MTk2NzQ5MzM5OTMyNTkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e706f6c85e1d65be26a6a91396cd4c7a9de7cd0e4d3eb1d3526f68cc8e9696d8 |
| hovercard-subject-tag | pull_request:835349496 |
| 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/31018/files |
| twitter:image | https://avatars.githubusercontent.com/u/4431336?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/4431336?s=400&v=4 |
| og:image:alt | These are the parts of the old PR (#30398) relevant to only the grammar changes. To summarise, this adds support for:
Starring within squared brackets, e.g. Tensor[*Ts], Tensor[T, *Ts] (where Ts i... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 321736bfdb3f591415ae895a0459bec204b26a76caf47ba5c980634cfacc4538 |
| 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 | 7a9163cefd1ea4bd06f8eb7c082f43e4e53f626f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/31018/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F31018%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%2F31018%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/31018/files |
| Reload | https://github.com/python/cpython/pull/31018/files |
| Reload | https://github.com/python/cpython/pull/31018/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/31018/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/31018/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 |
| JelleZijlstra | https://github.com/JelleZijlstra |
| python:main | https://github.com/python/cpython/tree/main |
| mrahtz:pep646-grammar | https://github.com/mrahtz/cpython/tree/pep646-grammar |
|
Conversation
42
| https://github.com/python/cpython/pull/31018 |
|
Commits
17
| https://github.com/python/cpython/pull/31018/commits |
|
Checks
0
| https://github.com/python/cpython/pull/31018/checks |
|
Files changed
| https://github.com/python/cpython/pull/31018/files |
| Please reload this page | https://github.com/python/cpython/pull/31018/files |
|
bpo-43224: Implement PEP 646 grammar changes
| https://github.com/python/cpython/pull/31018/files#top |
|
Show all changes
17 commits
| https://github.com/python/cpython/pull/31018/files |
|
7ecb7ba
bpo-43224: Implement PEP 646 grammar changes
mrahtz Jan 30, 2022
| https://github.com/python/cpython/pull/31018/commits/7ecb7ba6db087e96ef2be43901f43817adb9a8c0 |
|
c0531ec
Add tests for del
mrahtz Jan 30, 2022
| https://github.com/python/cpython/pull/31018/commits/c0531ec6b3e82c971c763dee5965ccd2ab2aa668 |
|
479c175
Tweak news to better fit in with other PRs
mrahtz Jan 30, 2022
| https://github.com/python/cpython/pull/31018/commits/479c175be04206e2e0639d84b227bc977c68edd6 |
|
091ceeb
Move error cases into test_syntax
mrahtz Feb 13, 2022
| https://github.com/python/cpython/pull/31018/commits/091ceebdb01c922b6fb67f8277a7bba56b997df1 |
|
f1c9c77
Add an extra failure test
mrahtz Feb 14, 2022
| https://github.com/python/cpython/pull/31018/commits/f1c9c77b3c5fcb675316f8d8653c842b0cdc7d2e |
|
c8d2534
Add more tests combining slicing with starring
mrahtz Mar 17, 2022
| https://github.com/python/cpython/pull/31018/commits/c8d25343415153a320efadf434a3437379702422 |
|
5df1e97
Fix ast representation of slices combined with starring
mrahtz Mar 17, 2022
| https://github.com/python/cpython/pull/31018/commits/5df1e97bfdec08a9617bd24abb2cd5cfe1bb5ce6 |
|
677a326
Fix broken test in test_unparse
mrahtz Mar 17, 2022
| https://github.com/python/cpython/pull/31018/commits/677a326cc4cfa38cb02ccdaaa162970960317310 |
|
1543785
Add a check_src_roundtrip test for "a[1:2, *a]"
mrahtz Mar 17, 2022
| https://github.com/python/cpython/pull/31018/commits/1543785644e18065866d6d1646820c7871b3e9e2 |
|
e1ab6ea
fix whitespace (make patchcheck)
JelleZijlstra Mar 23, 2022
| https://github.com/python/cpython/pull/31018/commits/e1ab6ea168c51d34b189a8ad7703c620dd2f0ee8 |
|
18e7fa7
Merge remote-tracking branch 'upstream/main' into pep646-grammar
JelleZijlstra Mar 23, 2022
| https://github.com/python/cpython/pull/31018/commits/18e7fa7f4139282a85b0df000c5576fdaaafe2df |
|
72dd8b9
Add tests for AST changes
mrahtz Mar 24, 2022
| https://github.com/python/cpython/pull/31018/commits/72dd8b9445a7dc413ea03535026b60a67fbe6ff4 |
|
80bb5fa
Fix C unpack
mrahtz Mar 24, 2022
| https://github.com/python/cpython/pull/31018/commits/80bb5facc2a311dc9b0e54aa58b59c39344e78b5 |
|
fbfd5b1
Fix typing.get_type_hints on variadic annotation
mrahtz Mar 24, 2022
| https://github.com/python/cpython/pull/31018/commits/fbfd5b142ee2bb4f136fabd0b38946b6b42fb02c |
|
816098c
Fix typo
mrahtz Mar 24, 2022
| https://github.com/python/cpython/pull/31018/commits/816098c82b8a3a9c372841e6f420e1377fd27a6a |
|
8962d26
Remove debug print
mrahtz Mar 25, 2022
| https://github.com/python/cpython/pull/31018/commits/8962d26f3bde3d73ec2d985ab7c2d910f8d2d3c5 |
|
973e9cc
Fix potential shadowing in ForwardRef
mrahtz Mar 25, 2022
| https://github.com/python/cpython/pull/31018/commits/973e9cca59abd57831561ae51284d6f9aaa921ac |
|
Clear filters
| https://github.com/python/cpython/pull/31018/files |
| Please reload this page | https://github.com/python/cpython/pull/31018/files |
| Please reload this page | https://github.com/python/cpython/pull/31018/files |
|
python.gram
| https://github.com/python/cpython/pull/31018/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b |
|
ast.py
| https://github.com/python/cpython/pull/31018/files#diff-abeeed217a24ce3c21e15c2e32e2f0886cea69986c2641455c1eefc983c1f977 |
|
test_ast.py
| https://github.com/python/cpython/pull/31018/files#diff-3f516b60719dd445d33225e4f316b36e85c9c51a843a0147349d11a005c55937 |
|
test_future.py
| https://github.com/python/cpython/pull/31018/files#diff-1c66f879de5afb6dc7a9febdd7e51b8676b7d4536ae70149fc6616bd1392c7e8 |
|
test_pep646_syntax.py
| https://github.com/python/cpython/pull/31018/files#diff-ee066cba0321e2389fca2161c9e90bf270585f64e82e00f78a1de8253557573c |
|
test_syntax.py
| https://github.com/python/cpython/pull/31018/files#diff-985c9f5237c42a342864f5cbdb35dc56bc0017f44d5dfa561ecbef72e4a7ad4f |
|
test_unparse.py
| https://github.com/python/cpython/pull/31018/files#diff-1393034a674edcc67802941e0e8cfa4966c9927ba9bde2cace103593140e3f89 |
|
typing.py
| https://github.com/python/cpython/pull/31018/files#diff-ddb987fca5f5df0c9a2f5521ed687919d70bb3d64eaeb8021f98833a2a716887 |
|
2022-01-20-16-48-09.bpo-43224.WDihrT.rst
| https://github.com/python/cpython/pull/31018/files#diff-6e6223d841af276d1ad47bcd52e4b9283e6b11b6c11e19d87c86bd53af1e6143 |
|
parser.c
| https://github.com/python/cpython/pull/31018/files#diff-6d39440cedc67d1ce7a0586bfb6ecb8483803448a9c93f3fae3ad0e2260e29f7 |
|
ast_unparse.c
| https://github.com/python/cpython/pull/31018/files#diff-d205bb48a85c9457b46a402a19e66c18860590b7ea8b55ae4da704444f433dba |
|
compile.c
| https://github.com/python/cpython/pull/31018/files#diff-ebc983d9f91e5bcf73500e377ac65e85863c4f77fd5b6b6caf4fcdf7c0f0b057 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L301 |
| Grammar/python.gram | https://github.com/python/cpython/pull/31018/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b |
|
View file
| https://github.com/mrahtz/cpython/blob/973e9cca59abd57831561ae51284d6f9aaa921ac/Grammar/python.gram |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/31018/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/31018/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b |
|
| https://github.com/python/cpython/pull/31018/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b |
| Please reload this page | https://github.com/python/cpython/pull/31018/files |
|
| https://github.com/python/cpython/pull/31018/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b |
|
| https://github.com/python/cpython/pull/31018/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b |
| Please reload this page | https://github.com/python/cpython/pull/31018/files |
|
| https://github.com/python/cpython/pull/31018/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L201 |
| Lib/ast.py | https://github.com/python/cpython/pull/31018/files#diff-abeeed217a24ce3c21e15c2e32e2f0886cea69986c2641455c1eefc983c1f977 |
|
View file
| https://github.com/mrahtz/cpython/blob/973e9cca59abd57831561ae51284d6f9aaa921ac/Lib/ast.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/31018/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/31018/files#diff-abeeed217a24ce3c21e15c2e32e2f0886cea69986c2641455c1eefc983c1f977 |
|
| https://github.com/python/cpython/pull/31018/files#diff-abeeed217a24ce3c21e15c2e32e2f0886cea69986c2641455c1eefc983c1f977 |
| Lib/test/test_ast.py | https://github.com/python/cpython/pull/31018/files#diff-3f516b60719dd445d33225e4f316b36e85c9c51a843a0147349d11a005c55937 |
|
View file
| https://github.com/mrahtz/cpython/blob/973e9cca59abd57831561ae51284d6f9aaa921ac/Lib/test/test_ast.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/31018/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/31018/files#diff-3f516b60719dd445d33225e4f316b36e85c9c51a843a0147349d11a005c55937 |
|
| https://github.com/python/cpython/pull/31018/files#diff-3f516b60719dd445d33225e4f316b36e85c9c51a843a0147349d11a005c55937 |
|
| https://github.com/python/cpython/pull/31018/files#diff-3f516b60719dd445d33225e4f316b36e85c9c51a843a0147349d11a005c55937 |
|
| https://github.com/python/cpython/pull/31018/files#diff-3f516b60719dd445d33225e4f316b36e85c9c51a843a0147349d11a005c55937 |
|
| https://github.com/python/cpython/pull/31018/files#diff-3f516b60719dd445d33225e4f316b36e85c9c51a843a0147349d11a005c55937 |
|
| https://github.com/python/cpython/pull/31018/files#diff-3f516b60719dd445d33225e4f316b36e85c9c51a843a0147349d11a005c55937 |
|
| https://github.com/python/cpython/pull/31018/files#diff-3f516b60719dd445d33225e4f316b36e85c9c51a843a0147349d11a005c55937 |
|
| https://github.com/python/cpython/pull/31018/files#diff-3f516b60719dd445d33225e4f316b36e85c9c51a843a0147349d11a005c55937 |
| Lib/test/test_future.py | https://github.com/python/cpython/pull/31018/files#diff-1c66f879de5afb6dc7a9febdd7e51b8676b7d4536ae70149fc6616bd1392c7e8 |
|
View file
| https://github.com/mrahtz/cpython/blob/973e9cca59abd57831561ae51284d6f9aaa921ac/Lib/test/test_future.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/31018/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/31018/files#diff-1c66f879de5afb6dc7a9febdd7e51b8676b7d4536ae70149fc6616bd1392c7e8 |
| mrahtz | https://github.com/mrahtz |
| Mar 24, 2022 | https://github.com/python/cpython/pull/31018/files#r834718999 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/31018/files |
|
| https://github.com/python/cpython/pull/31018/files#diff-1c66f879de5afb6dc7a9febdd7e51b8676b7d4536ae70149fc6616bd1392c7e8 |
|
| https://github.com/python/cpython/pull/31018/files#diff-1c66f879de5afb6dc7a9febdd7e51b8676b7d4536ae70149fc6616bd1392c7e8 |
|
| https://github.com/python/cpython/pull/31018/files#diff-1c66f879de5afb6dc7a9febdd7e51b8676b7d4536ae70149fc6616bd1392c7e8 |
|
| https://github.com/python/cpython/pull/31018/files#diff-1c66f879de5afb6dc7a9febdd7e51b8676b7d4536ae70149fc6616bd1392c7e8 |
|
| https://github.com/python/cpython/pull/31018/files#diff-1c66f879de5afb6dc7a9febdd7e51b8676b7d4536ae70149fc6616bd1392c7e8 |
| Please reload this page | https://github.com/python/cpython/pull/31018/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 |