René's URL Explorer Experiment


Title: GH-98831: Add `macro` and `op` and their implementation to DSL by gvanrossum · Pull Request #99495 · python/cpython · GitHub

Open Graph Title: GH-98831: Add `macro` and `op` and their implementation to DSL by gvanrossum · Pull Request #99495 · python/cpython

X Title: GH-98831: Add `macro` and `op` and their implementation to DSL by gvanrossum · Pull Request #99495 · python/cpython

Description: One deviation from the DSL spec: macro can build on both inst and op. Also some other random improvements: Convert WITH_EXCEPT_START Fix lexer to balk at unrecognized characters, e.g. '@' Fix moved output names; support object pointers in cache Introduce error() method to print errors Issue: gh-98831

Open Graph Description: One deviation from the DSL spec: macro can build on both inst and op. Also some other random improvements: Convert WITH_EXCEPT_START Fix lexer to balk at unrecognized characters, e.g. '@' ...

X Description: One deviation from the DSL spec: macro can build on both inst and op. Also some other random improvements: Convert WITH_EXCEPT_START Fix lexer to balk at unrecognized characters, e.g. '@&a...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:225ca4af-6b6b-82c1-4257-332d600cf540
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD834:279B15:109B508:16D6CFA:6969F5E0
html-safe-noncee81ce87fb2d727c126f9036e9afd880146072915ae18312a1ad7755560b8e8a7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODM0OjI3OUIxNToxMDlCNTA4OjE2RDZDRkE6Njk2OUY1RTAiLCJ2aXNpdG9yX2lkIjoiMzU4NzYwMjk2ODg0OTU0NDY3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd5bfb8cd296bcbfe433c1992e17b90d7f6afffb26c6394bb312e228ec78e14cb
hovercard-subject-tagpull_request:1122086573
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/99495/files
twitter:imagehttps://avatars.githubusercontent.com/u/2894642?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/2894642?s=400&v=4
og:image:altOne deviation from the DSL spec: macro can build on both inst and op. Also some other random improvements: Convert WITH_EXCEPT_START Fix lexer to balk at unrecognized characters, e.g. '@' ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8
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
releasebdde15ad1b403e23b08bbd89b53fbe6bdf688cad
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/99495/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F99495%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%2F99495%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/99495/files
Reloadhttps://github.com/python/cpython/pull/99495/files
Reloadhttps://github.com/python/cpython/pull/99495/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/99495/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/99495/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
gvanrossumhttps://github.com/gvanrossum
python:mainhttps://github.com/python/cpython/tree/main
gvanrossum:macro-opshttps://github.com/gvanrossum/cpython/tree/macro-ops
Conversation 16 https://github.com/python/cpython/pull/99495
Commits 21 https://github.com/python/cpython/pull/99495/commits
Checks 0 https://github.com/python/cpython/pull/99495/checks
Files changed https://github.com/python/cpython/pull/99495/files
Please reload this pagehttps://github.com/python/cpython/pull/99495/files
GH-98831: Add macro and op and their implementation to DSL https://github.com/python/cpython/pull/99495/files#top
Show all changes 21 commits https://github.com/python/cpython/pull/99495/files
7fb598a Add macro() and op() DSL features gvanrossum Nov 14, 2022 https://github.com/python/cpython/pull/99495/commits/7fb598a23dbb34209208eb6f8d94cc7d19477b33
edae5af Improve code generation for super/macro instructions gvanrossum Nov 15, 2022 https://github.com/python/cpython/pull/99495/commits/edae5af11b1de5c952eae321b52d4da38819598d
881357e Move super code generation into a helper gvanrossum Nov 16, 2022 https://github.com/python/cpython/pull/99495/commits/881357edd8edcd4b5dfcde66c0c6109bd0f323ed
0f12c40 Reduce the fiddling with integers in super analysis gvanrossum Nov 16, 2022 https://github.com/python/cpython/pull/99495/commits/0f12c4034b9ad3c203557e224a05547dece39999
babdbf9 Do the super/macro analysis at analysis time gvanrossum Nov 16, 2022 https://github.com/python/cpython/pull/99495/commits/babdbf9a9a069ecc801c565757af041cbb58a818
2fa0a04 Convert WITH_EXCEPT_START, fix generator to make it work gvanrossum Nov 16, 2022 https://github.com/python/cpython/pull/99495/commits/2fa0a048549498e8e47eafff2ef7ec72056cea89
cb0c874 Fix lexer to balk at unrecognized characters, e.g. '@' gvanrossum Nov 16, 2022 https://github.com/python/cpython/pull/99495/commits/cb0c874062c68de8fb64abdf37e242e65f253cc3
fe0d336 Fix typo in comment gvanrossum Nov 17, 2022 https://github.com/python/cpython/pull/99495/commits/fe0d336697bd22c64aa996e7cb69ab0bd0face70
d84a5c3 Code review from GH-99526 gvanrossum Nov 18, 2022 https://github.com/python/cpython/pull/99495/commits/d84a5c364f977a1d1aa8412d4256a63b30c0b7ab
d7ad950 Fix moved output names; support object pointers in cache gvanrossum Nov 18, 2022 https://github.com/python/cpython/pull/99495/commits/d7ad95004375a146c050e2dfbb28ea1452d7f0f9
a034675 Tune README gvanrossum Nov 18, 2022 https://github.com/python/cpython/pull/99495/commits/a0346757f42695ae8c6715fe3d8290a95d26c2f6
1aafac8 Introduce error() method to print errors gvanrossum Nov 18, 2022 https://github.com/python/cpython/pull/99495/commits/1aafac8c3bd72a051aa77ece1c544388a8525591
20062f4 Check components of super/macro ops gvanrossum Nov 18, 2022 https://github.com/python/cpython/pull/99495/commits/20062f431af22d91927087209188eaaf36f12927
7194723 Fix crash when WITH_EXCEPT_START errors out gvanrossum Nov 18, 2022 https://github.com/python/cpython/pull/99495/commits/7194723b96beb05f966a6ba6a0eadea0a095bf9f
cb62653 Merge branch 'main' into macro-ops gvanrossum Nov 19, 2022 https://github.com/python/cpython/pull/99495/commits/cb6265374f463d6ba43ba0fd88fc6a747d83b36d
b74aa6a Don't use typing.Dict gvanrossum Nov 22, 2022 https://github.com/python/cpython/pull/99495/commits/b74aa6aaac304d256ca66ca14de896d2b4aecbae
a0feff9 Kill more "unused" literals gvanrossum Nov 22, 2022 https://github.com/python/cpython/pull/99495/commits/a0feff9402678b7b8c1203ea95f2613f0262747b
a2e9991 Don't over-use f-strings gvanrossum Nov 22, 2022 https://github.com/python/cpython/pull/99495/commits/a2e999143554941a779c64e9568016cfd1c973ce
240126b Avoid compiler warning on unused variable gvanrossum Nov 22, 2022 https://github.com/python/cpython/pull/99495/commits/240126b0985ab75b4ada76be7dde61c4d620dbeb
6640706 Merge remote-tracking branch 'origin/main' into macro-ops gvanrossum Nov 22, 2022 https://github.com/python/cpython/pull/99495/commits/6640706e737731b22ae50a38b456d87764a9e5e3
7afa58c Introduce read_uint16(p) as equivalent to *p gvanrossum Nov 22, 2022 https://github.com/python/cpython/pull/99495/commits/7afa58c3b343d34ba4ad64c1357f106ec21b78e3
Clear filters https://github.com/python/cpython/pull/99495/files
Please reload this pagehttps://github.com/python/cpython/pull/99495/files
Please reload this pagehttps://github.com/python/cpython/pull/99495/files
pycore_code.h https://github.com/python/cpython/pull/99495/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8
bytecodes.c https://github.com/python/cpython/pull/99495/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
generated_cases.c.h https://github.com/python/cpython/pull/99495/files#diff-4ef46fa654f95502e49a24f7dc8ee31a4cac9b3433fe9cd2b2d4dd78cfbad448
README.md https://github.com/python/cpython/pull/99495/files#diff-c843e0106de09442054ba821446491d9908a97452d8fd3b4354dd4d9d1fab97f
generate_cases.py https://github.com/python/cpython/pull/99495/files#diff-65feee563fa44b472b07751184c6f557699f84b3c2ef79174bfd5d538d748272
lexer.py https://github.com/python/cpython/pull/99495/files#diff-6540be8db4a255ba36e1b4dea6cf12db11ee7c44e29bfd3c0a4d4f53bb8ef2d8
parser.py https://github.com/python/cpython/pull/99495/files#diff-bc6851ce97efb76ebfd0bc2f37d62ac0902080d0749be72d29d978f0ee2fa0e4
Include/internal/pycore_code.hhttps://github.com/python/cpython/pull/99495/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8
View file https://github.com/gvanrossum/cpython/blob/7afa58c3b343d34ba4ad64c1357f106ec21b78e3/Include/internal/pycore_code.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/99495/{{ revealButtonHref }}
https://github.com/python/cpython/pull/99495/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8
https://github.com/python/cpython/pull/99495/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L221
Python/bytecodes.chttps://github.com/python/cpython/pull/99495/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
View file https://github.com/gvanrossum/cpython/blob/7afa58c3b343d34ba4ad64c1357f106ec21b78e3/Python/bytecodes.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/99495/{{ revealButtonHref }}
https://github.com/python/cpython/pull/99495/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
https://github.com/python/cpython/pull/99495/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
https://github.com/python/cpython/pull/99495/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
https://github.com/python/cpython/pull/99495/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
https://github.com/python/cpython/pull/99495/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
https://github.com/python/cpython/pull/99495/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
https://github.com/python/cpython/pull/99495/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
Python/generated_cases.c.hhttps://github.com/python/cpython/pull/99495/files#diff-4ef46fa654f95502e49a24f7dc8ee31a4cac9b3433fe9cd2b2d4dd78cfbad448
View file https://github.com/gvanrossum/cpython/blob/7afa58c3b343d34ba4ad64c1357f106ec21b78e3/Python/generated_cases.c.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/99495/files
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L223
Tools/cases_generator/README.mdhttps://github.com/python/cpython/pull/99495/files#diff-c843e0106de09442054ba821446491d9908a97452d8fd3b4354dd4d9d1fab97f
View file https://github.com/gvanrossum/cpython/blob/7afa58c3b343d34ba4ad64c1357f106ec21b78e3/Tools/cases_generator/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/99495/{{ revealButtonHref }}
https://github.com/python/cpython/pull/99495/files#diff-c843e0106de09442054ba821446491d9908a97452d8fd3b4354dd4d9d1fab97f
https://github.com/python/cpython/pull/99495/files#diff-c843e0106de09442054ba821446491d9908a97452d8fd3b4354dd4d9d1fab97f
Please reload this pagehttps://github.com/python/cpython/pull/99495/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.