René's URL Explorer Experiment


Title: gh-127833: Use `productionlist` nodes to implement the `grammar-snippet` directive by AA-Turner · Pull Request #130376 · python/cpython · GitHub

Open Graph Title: gh-127833: Use `productionlist` nodes to implement the `grammar-snippet` directive by AA-Turner · Pull Request #130376 · python/cpython

X Title: gh-127833: Use `productionlist` nodes to implement the `grammar-snippet` directive by AA-Turner · Pull Request #130376 · python/cpython

Description: 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 Sphinx. A Issue: gh-127833 📚 Documentation preview 📚: https://cpython-previews--130376.org.readthedocs.build/

Open Graph Description: 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...

X Description: 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 ...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:2c2d8c86-ba6c-8043-a7a5-d6e89610c21c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCFDC:26177F:B148F:E2FCF:696AFCE1
html-safe-nonce416baa97012aeaa9d214f72032dbca7177968df6118f50e22f7da293a7810a6e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkRDOjI2MTc3RjpCMTQ4RjpFMkZDRjo2OTZBRkNFMSIsInZpc2l0b3JfaWQiOiI4MDEzNDQ5Mzk0NTExMzQ2OTEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacbf0bb6c08896e8775e3f8962738ac38d83a4fe083fd867b525e9c03a983be49a
hovercard-subject-tagpull_request:2347938256
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/130376/files
twitter:imagehttps://avatars.githubusercontent.com/u/9087854?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/9087854?s=400&v=4
og:image:altSplit 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
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
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://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 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%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
Reloadhttps://github.com/python/cpython/pull/130376/files
Reloadhttps://github.com/python/cpython/pull/130376/files
Reloadhttps://github.com/python/cpython/pull/130376/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://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 pagehttps://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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
AA-Turnerhttps://github.com/AA-Turner
python:mainhttps://github.com/python/cpython/tree/main
AA-Turner:docs/productionlist-grammarhttps://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 pagehttps://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 pagehttps://github.com/python/cpython/pull/130376/files
Please reload this pagehttps://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.pyhttps://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 pagehttps://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 pagehttps://github.com/python/cpython/pull/130376/files
Please reload this pagehttps://github.com/python/cpython/pull/130376/files
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.