| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:197ff39c-3b2b-0a16-974d-2cd25d5a9920 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DA10:334E8C:C32BC3:11CDFEB:6A560A45 |
| html-safe-nonce | a3ec95043aa9a6d9d05b876ecc5a66232228331ab42c9395442316515a0e54fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTEwOjMzNEU4QzpDMzJCQzM6MTFDREZFQjo2QTU2MEE0NSIsInZpc2l0b3JfaWQiOiI4MTA5ODk5OTAzMTM0OTkyOTY1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fc316c0f089368432a82e0c3c5a992959187ab0badfeb4b72c1ff6b7d0d8c8aa |
| hovercard-subject-tag | pull_request:430423760 |
| 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/20696/files |
| twitter:image | https://avatars.githubusercontent.com/u/11718525?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/11718525?s=400&v=4 |
| og:image:alt | https://bugs.python.org/issue40902 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | f4368738fc918fecd9b3958f6b49218bbe60d4185f38e72e3954e11f1ad0213a |
| 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 | 85a7179838b41e8b23f939d3b67b53f752ecfc54 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/20696/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F20696%2Ffiles |
| 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%2F20696%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/20696/files |
| Reload | https://github.com/python/cpython/pull/20696/files |
| Reload | https://github.com/python/cpython/pull/20696/files |
| Please reload this page | https://github.com/python/cpython/pull/20696/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/20696/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
35k
| 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 |
| 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 |
| pablogsal | https://github.com/pablogsal |
| python:master | https://github.com/python/cpython/tree/master |
| we-like-parsers:operator_precedence | https://github.com/we-like-parsers/cpython/tree/operator_precedence |
|
Conversation
4
| https://github.com/python/cpython/pull/20696 |
|
Commits
19
| https://github.com/python/cpython/pull/20696/commits |
|
Checks
0
| https://github.com/python/cpython/pull/20696/checks |
|
Files changed
| https://github.com/python/cpython/pull/20696/files |
| Please reload this page | https://github.com/python/cpython/pull/20696/files |
|
bpo-40902: Speed up PEG parser by using Dijkstra's shunting yard algorithm
| https://github.com/python/cpython/pull/20696/files#top |
|
Show all changes
19 commits
| https://github.com/python/cpython/pull/20696/files |
|
83337b3
WIP of operator precedence
pablogsal Jun 7, 2020
| https://github.com/python/cpython/pull/20696/commits/83337b3aedf25d3a51eca910b7536eaedbeeb576 |
|
9e25541
Generate precedence table
pablogsal Jun 7, 2020
| https://github.com/python/cpython/pull/20696/commits/9e25541c01111f2a6b144ef47f5f0c8197d76a4b |
|
0366b96
Fix test_ast and test_type_comments and address feedback
pablogsal Jun 7, 2020
| https://github.com/python/cpython/pull/20696/commits/0366b968cecd29ff1d6012aa4c8a43cdcc3eef8f |
|
2f979f9
Use a struct to keep track of the augmented info
pablogsal Jun 7, 2020
| https://github.com/python/cpython/pull/20696/commits/2f979f94d9a192a6961c57c0971d2b3a4c249a2b |
|
c51f1ad
Remove the macro into a static inline function
pablogsal Jun 7, 2020
| https://github.com/python/cpython/pull/20696/commits/c51f1ad6c78060bc4b20c64c5e7e358712a0dbbd |
|
d0e3ef5
Minor cleanup
gvanrossum Jun 7, 2020
| https://github.com/python/cpython/pull/20696/commits/d0e3ef58dc86c13077d92a3e0330a60a9b3321ff |
|
8f12437
Replace operators[i] with values[i].oper
gvanrossum Jun 7, 2020
| https://github.com/python/cpython/pull/20696/commits/8f1243745c42a91dfc1c1d10a38c605f0682381e |
|
2372f5e
Eliminate stack_pos -- it's always output_pos - 1
gvanrossum Jun 7, 2020
| https://github.com/python/cpython/pull/20696/commits/2372f5e02bd3e5a02ea7190252375f3f4e62cd8a |
|
9398d8f
Tiny cleanup
gvanrossum Jun 7, 2020
| https://github.com/python/cpython/pull/20696/commits/9398d8f59ca3bf9913da3a6e6c171ad728807805 |
|
1554dea
Rename values->stack, output_ptr->stack_top
gvanrossum Jun 7, 2020
| https://github.com/python/cpython/pull/20696/commits/1554dea1db567ff9a97f05e3eb918186acee77c6 |
|
0b6f84a
Use member assignments instead of creating a new ValueItem
gvanrossum Jun 7, 2020
| https://github.com/python/cpython/pull/20696/commits/0b6f84aa01b3b069cf33739aca26d508707f7ccc |
|
8dd799b
Slight tweak of _reduction_step()
gvanrossum Jun 7, 2020
| https://github.com/python/cpython/pull/20696/commits/8dd799be2abd8c029a9e1f832432b3bb8baf6e80 |
|
08e588b
Raise for now if the associativity of the operators is not 'left'
pablogsal Jun 7, 2020
| https://github.com/python/cpython/pull/20696/commits/08e588bc41e2f18928dc2fbd6f1e827f2cadb838 |
|
882c740
Add a huge block comment explaining the operator precedence parser
gvanrossum Jun 8, 2020
| https://github.com/python/cpython/pull/20696/commits/882c74095bd0d34e226ee6b9a3bf6a3177ee9ba1 |
|
13de6ab
Merge remote-tracking branch 'upstream/master' into operator_precedence
pablogsal Jun 8, 2020
| https://github.com/python/cpython/pull/20696/commits/13de6ab48ecfcb8d69fc867f7d3303251f3c9398 |
|
10bc620
Implement right-associative operators
pablogsal Jun 8, 2020
| https://github.com/python/cpython/pull/20696/commits/10bc6204c6d2093d1fd8efe1ec0ad2bcf927ab32 |
|
5320f37
Better error handling
pablogsal Jun 8, 2020
| https://github.com/python/cpython/pull/20696/commits/5320f37c84d8b15239dd81ef4d84c02821027f25 |
|
fe2d89c
Remove TODO item
pablogsal Jun 8, 2020
| https://github.com/python/cpython/pull/20696/commits/fe2d89c3f3c6caa2f652050c8855bedd0c4db4a5 |
|
6fee838
Do not use yet '**' in the operators list in the grammar
pablogsal Jun 8, 2020
| https://github.com/python/cpython/pull/20696/commits/6fee838543146eae432f0938cb10b9899991a14a |
|
Clear filters
| https://github.com/python/cpython/pull/20696/files |
| Please reload this page | https://github.com/python/cpython/pull/20696/files |
| Please reload this page | https://github.com/python/cpython/pull/20696/files |
|
python.gram
| https://github.com/python/cpython/pull/20696/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b |
|
parse.c
| https://github.com/python/cpython/pull/20696/files#diff-a0066ba71aaf2e4958c42c8af79b77a0954bb7af0592adbbd62cc858c4bdb6c9 |
|
pegen.c
| https://github.com/python/cpython/pull/20696/files#diff-0ed7ec9eb1c1598c607560250c03d68b5231d62b6ff651bea09bf4af41f1544d |
|
pegen.h
| https://github.com/python/cpython/pull/20696/files#diff-d4a9f49107c909c0f1e57dd99583f66009864915bf543994535f4d87139b79f6 |
|
c_generator.py
| https://github.com/python/cpython/pull/20696/files#diff-72bca3f9d3b81d7845baeb20190030d93e9630cb86ebba88854010f7142828a0 |
| Grammar/python.gram | https://github.com/python/cpython/pull/20696/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b |
|
View file
| https://github.com/we-like-parsers/cpython/blob/6fee838543146eae432f0938cb10b9899991a14a/Grammar/python.gram |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/20696/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/20696/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b |
|
| https://github.com/python/cpython/pull/20696/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b |
|
| https://github.com/python/cpython/pull/20696/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b |
|
| https://github.com/python/cpython/pull/20696/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b |
| Please reload this page | https://github.com/python/cpython/pull/20696/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 |