| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2c2d8c86-ba6c-8043-a7a5-d6e89610c21c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CFDC:26177F:B148F:E2FCF:696AFCE1 |
| html-safe-nonce | 416baa97012aeaa9d214f72032dbca7177968df6118f50e22f7da293a7810a6e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkRDOjI2MTc3RjpCMTQ4RjpFMkZDRjo2OTZBRkNFMSIsInZpc2l0b3JfaWQiOiI4MDEzNDQ5Mzk0NTExMzQ2OTEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | bf0bb6c08896e8775e3f8962738ac38d83a4fe083fd867b525e9c03a983be49a |
| hovercard-subject-tag | pull_request:2347938256 |
| 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/130376/files |
| twitter:image | https://avatars.githubusercontent.com/u/9087854?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/9087854?s=400&v=4 |
| og:image:alt | Split into individual commits for readability. I contend that productionlist nodes are semantically the right thing to use here, the only reason we didn't before was due to a limitation in Sphi... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/130376/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F130376%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%2F130376%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/130376/files |
| Reload | https://github.com/python/cpython/pull/130376/files |
| Reload | https://github.com/python/cpython/pull/130376/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/130376/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/130376/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 |
| AA-Turner | https://github.com/AA-Turner |
| python:main | https://github.com/python/cpython/tree/main |
| AA-Turner:docs/productionlist-grammar | https://github.com/AA-Turner/cpython/tree/docs/productionlist-grammar |
|
Conversation
14
| https://github.com/python/cpython/pull/130376 |
|
Commits
18
| https://github.com/python/cpython/pull/130376/commits |
|
Checks
41
| https://github.com/python/cpython/pull/130376/checks |
|
Files changed
| https://github.com/python/cpython/pull/130376/files |
| Please reload this page | https://github.com/python/cpython/pull/130376/files |
|
gh-127833: Use productionlist nodes to implement the grammar-snippet directive
| https://github.com/python/cpython/pull/130376/files#top |
|
Show all changes
18 commits
| https://github.com/python/cpython/pull/130376/files |
|
21d52e1
Extract `grammar_re` to class-level
AA-Turner Feb 20, 2025
| https://github.com/python/cpython/pull/130376/commits/21d52e100ed8b64ca492e1f1eb8c3a123bb65a15 |
|
e5624ed
Factor out `make_production()`
AA-Turner Feb 20, 2025
| https://github.com/python/cpython/pull/130376/commits/e5624ed4ad714bdab10fecaa7b09285817da09e1 |
|
02210ca
Update to 8.2 `make_name_target()`
AA-Turner Feb 20, 2025
| https://github.com/python/cpython/pull/130376/commits/02210cac4522fa75082d382b4051b5237675a3f6 |
|
587c7f9
Use `productionlist` and `production` nodes
AA-Turner Feb 20, 2025
| https://github.com/python/cpython/pull/130376/commits/587c7f9f998ef05bf877dba1af05bcf9b1d09fcb |
|
7ce49bf
Update topics.py
AA-Turner Feb 20, 2025
| https://github.com/python/cpython/pull/130376/commits/7ce49bf655a26b9d4d4ad5f193738aad481a94a2 |
|
93d80df
Add highlighting back
encukou Feb 26, 2025
| https://github.com/python/cpython/pull/130376/commits/93d80df67e5f1ddb721d7c048c0225e2dd99fac8 |
|
8c3f133
Merge each multi-line productions into a single production node
encukou Feb 26, 2025
| https://github.com/python/cpython/pull/130376/commits/8c3f133bb93c4a03c22b9bbd4d5bdc5c8087f132 |
|
9ad7e8f
Add Blaise as co-author
blaisep Feb 26, 2025
| https://github.com/python/cpython/pull/130376/commits/9ad7e8f2df5ddd069398707be5faabe61b13cb1d |
|
cde13e2
Run ruff format
encukou Feb 26, 2025
| https://github.com/python/cpython/pull/130376/commits/cde13e2be2c99a91c7983b50d31a5fb9be206993 |
|
a9237dd
Fill in the rawsource lines
encukou Mar 5, 2025
| https://github.com/python/cpython/pull/130376/commits/a9237ddebd90e06b605ee359ed73f8148f96c92d |
|
c958165
Fix initial case
encukou Mar 5, 2025
| https://github.com/python/cpython/pull/130376/commits/c9581650256781e13ec3a54125352523916367ca |
|
e591450
Small tweaks
AA-Turner Mar 12, 2025
| https://github.com/python/cpython/pull/130376/commits/e591450ed853e138b48e55883c183fe441f11b6e |
|
6b4ec3d
Extract production lines logic into `production_definitions()`
AA-Turner Mar 12, 2025
| https://github.com/python/cpython/pull/130376/commits/6b4ec3d51ddae566ef7f859f8060783cc2e4b796 |
|
f5b5ff5
Dict → tuple
encukou Mar 17, 2025
| https://github.com/python/cpython/pull/130376/commits/f5b5ff599d12d5f8cebfd07cf3b296bddf9f7ce6 |
|
be8f9e7
Provide more info on error
encukou Mar 17, 2025
| https://github.com/python/cpython/pull/130376/commits/be8f9e728573b254c7b113a84cb0346e5523f977 |
|
8144750
Merge in the main branch
encukou Mar 19, 2025
| https://github.com/python/cpython/pull/130376/commits/81447500d74ef422922e0ec53a5fe9d1ee5492d6 |
|
5b39df3
Merge branch 'main' into docs/productionlist-grammar
AA-Turner Mar 19, 2025
| https://github.com/python/cpython/pull/130376/commits/5b39df3affa0bfab844f68992a40b245d76f2b71 |
|
1c793eb
Regenerate ``pydoc_data/topics.py``
AA-Turner Mar 19, 2025
| https://github.com/python/cpython/pull/130376/commits/1c793eb9d5d7d4badcfd0eb8299824863d4b41ca |
|
Clear filters
| https://github.com/python/cpython/pull/130376/files |
| Please reload this page | https://github.com/python/cpython/pull/130376/files |
| Please reload this page | https://github.com/python/cpython/pull/130376/files |
|
grammar_snippet.py
| https://github.com/python/cpython/pull/130376/files#diff-cfb2d126f89c980f391483b06bda1d3669506b7f9711c5e112083382525a4117 |
|
topics.py
| https://github.com/python/cpython/pull/130376/files#diff-b0c9635f1cec7683a83dcf5f6eccd15749354bd2a94256b60d5dd195fbb806d3 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L107 |
| Doc/tools/extensions/grammar_snippet.py | https://github.com/python/cpython/pull/130376/files#diff-cfb2d126f89c980f391483b06bda1d3669506b7f9711c5e112083382525a4117 |
|
View file
| https://github.com/AA-Turner/cpython/blob/1c793eb9d5d7d4badcfd0eb8299824863d4b41ca/Doc/tools/extensions/grammar_snippet.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/130376/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/130376/files#diff-cfb2d126f89c980f391483b06bda1d3669506b7f9711c5e112083382525a4117 |
|
| https://github.com/python/cpython/pull/130376/files#diff-cfb2d126f89c980f391483b06bda1d3669506b7f9711c5e112083382525a4117 |
| Please reload this page | https://github.com/python/cpython/pull/130376/files |
|
| https://github.com/python/cpython/pull/130376/files#diff-cfb2d126f89c980f391483b06bda1d3669506b7f9711c5e112083382525a4117 |
|
| https://github.com/python/cpython/pull/130376/files#diff-cfb2d126f89c980f391483b06bda1d3669506b7f9711c5e112083382525a4117 |
|
| https://github.com/python/cpython/pull/130376/files#diff-cfb2d126f89c980f391483b06bda1d3669506b7f9711c5e112083382525a4117 |
|
| https://github.com/python/cpython/pull/130376/files#diff-cfb2d126f89c980f391483b06bda1d3669506b7f9711c5e112083382525a4117 |
| Please reload this page | https://github.com/python/cpython/pull/130376/files |
| Please reload this page | https://github.com/python/cpython/pull/130376/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 |