René's URL Explorer Experiment


Title: GH-93678: reduce boilerplate and code repetition in the compiler by iritkatriel · Pull Request #93682 · python/cpython · GitHub

Open Graph Title: GH-93678: reduce boilerplate and code repetition in the compiler by iritkatriel · Pull Request #93682 · python/cpython

X Title: GH-93678: reduce boilerplate and code repetition in the compiler by iritkatriel · Pull Request #93682 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: It might be easier to review the individual commits separately. The code generation part of the compiler has several functions which are slight variations of each other. Part of this is due to the ...

X Description: It might be easier to review the individual commits separately. The code generation part of the compiler has several functions which are slight variations of each other. Part of this is due to the ...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:b8e1000f-8c6e-dc1e-3af2-c45cbecca615
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC22C:26204A:164974E:1DE3489:6969B8D3
html-safe-nonce78a7faee5094145fdd5cbe60da3f364aec7c1a8a00467ec9e9ecd74975d52c8a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjJDOjI2MjA0QToxNjQ5NzRFOjFERTM0ODk6Njk2OUI4RDMiLCJ2aXNpdG9yX2lkIjoiNDYxNjU1OTIxNDY0NDAxNzM2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca592a5395ca7e9afc84a1b2783f63579dc8f719f5119db8f0872b5a227e93345
hovercard-subject-tagpull_request:964001181
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/93682/commits
twitter:imagehttps://opengraph.githubassets.com/8f70aa0c4acebbaca6958ff19f6e02f255dbc5b540cd024e9ce8f065edd89c35/python/cpython/pull/93682
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8f70aa0c4acebbaca6958ff19f6e02f255dbc5b540cd024e9ce8f065edd89c35/python/cpython/pull/93682
og:image:altIt might be easier to review the individual commits separately. The code generation part of the compiler has several functions which are slight variations of each other. Part of this is due to the ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameiritkatriel
hostnamegithub.com
expected-hostnamegithub.com
Noneacedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release83c08c21cdda978090dc44364b71aa5bc6dcea79
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/93682/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F93682%2Fcommits
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%2F93682%2Fcommits
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%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/93682/commits
Reloadhttps://github.com/python/cpython/pull/93682/commits
Reloadhttps://github.com/python/cpython/pull/93682/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/93682/commits
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/93682/commits
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
iritkatrielhttps://github.com/iritkatriel
python:mainhttps://github.com/python/cpython/tree/main
iritkatriel:codegen-reduce-repetitionhttps://github.com/iritkatriel/cpython/tree/codegen-reduce-repetition
Conversationhttps://github.com/python/cpython/pull/93682
Commits18 (18)https://github.com/python/cpython/pull/93682/commits
Checkshttps://github.com/python/cpython/pull/93682/checks
Files changedhttps://github.com/python/cpython/pull/93682/files
GH-93678: reduce boilerplate and code repetition in the compilerhttps://github.com/python/cpython/pull/93682/commits#top
iritkatrielhttps://github.com/iritkatriel
python:mainhttps://github.com/python/cpython/tree/main
iritkatriel:codegen-reduce-repetitionhttps://github.com/iritkatriel/cpython/tree/codegen-reduce-repetition
move line/noline to arg and remove _noline version of functionshttps://github.com/python/cpython/pull/93682/commits/996be64b4d5d85ad0d92f03f8f7de87e737ebde6
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
996be64https://github.com/python/cpython/pull/93682/commits/996be64b4d5d85ad0d92f03f8f7de87e737ebde6
https://github.com/python/cpython/tree/996be64b4d5d85ad0d92f03f8f7de87e737ebde6
add struct location to reduce boilerplatehttps://github.com/python/cpython/pull/93682/commits/af31e92ce2855ac6a3289145883690918e7af0af
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
af31e92https://github.com/python/cpython/pull/93682/commits/af31e92ce2855ac6a3289145883690918e7af0af
https://github.com/python/cpython/tree/af31e92ce2855ac6a3289145883690918e7af0af
merge basicblock_addop, basicblock_addop_i and basicblock_add_jump into one functions to reduce unnecessary repetitionhttps://github.com/python/cpython/pull/93682/commits/f8a076783d5bbfdaca5a909dfafd184dde47204d
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
f8a0767https://github.com/python/cpython/pull/93682/commits/f8a076783d5bbfdaca5a909dfafd184dde47204d
https://github.com/python/cpython/tree/f8a076783d5bbfdaca5a909dfafd184dde47204d
add newshttps://github.com/python/cpython/pull/93682/commits/430b4b97bc87581daf7f3fbfde91d8c5e8d15b6e
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
430b4b9https://github.com/python/cpython/pull/93682/commits/430b4b97bc87581daf7f3fbfde91d8c5e8d15b6e
https://github.com/python/cpython/tree/430b4b97bc87581daf7f3fbfde91d8c5e8d15b6e
assume that oparg is < (1<<30)https://github.com/python/cpython/pull/93682/commits/66d560935aa920881b3ccf84823f0d84f310db60
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
66d5609https://github.com/python/cpython/pull/93682/commits/66d560935aa920881b3ccf84823f0d84f310db60
https://github.com/python/cpython/tree/66d560935aa920881b3ccf84823f0d84f310db60
Merge remote-tracking branch 'upstream/main' into codegen-reduce-repetitionhttps://github.com/python/cpython/pull/93682/commits/7670a7cec206db2348d46db2dbec854b998f4124
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
7670a7chttps://github.com/python/cpython/pull/93682/commits/7670a7cec206db2348d46db2dbec854b998f4124
https://github.com/python/cpython/tree/7670a7cec206db2348d46db2dbec854b998f4124
use the new location struct for the compiler unit's locationhttps://github.com/python/cpython/pull/93682/commits/7d74572d77d5c11cb236bb1bb30dba2d2bd84fca
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
7d74572https://github.com/python/cpython/pull/93682/commits/7d74572d77d5c11cb236bb1bb30dba2d2bd84fca
https://github.com/python/cpython/tree/7d74572d77d5c11cb236bb1bb30dba2d2bd84fca
use the new location struct for the instruction locationhttps://github.com/python/cpython/pull/93682/commits/016ebbc821bcc3f3b3a7591d01d961ce671fae22
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
016ebbchttps://github.com/python/cpython/pull/93682/commits/016ebbc821bcc3f3b3a7591d01d961ce671fae22
https://github.com/python/cpython/tree/016ebbc821bcc3f3b3a7591d01d961ce671fae22
basicblock_addop takes location by referencehttps://github.com/python/cpython/pull/93682/commits/5e06cad8cf2d4023ff97cd6eefef5e2f4166eba2
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
5e06cadhttps://github.com/python/cpython/pull/93682/commits/5e06cad8cf2d4023ff97cd6eefef5e2f4166eba2
https://github.com/python/cpython/tree/5e06cad8cf2d4023ff97cd6eefef5e2f4166eba2
LOCATION needs to return a consthttps://github.com/python/cpython/pull/93682/commits/c23e2cf0b5020bbe5f33c686037cae308cf3bc34
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
c23e2cfhttps://github.com/python/cpython/pull/93682/commits/c23e2cf0b5020bbe5f33c686037cae308cf3bc34
https://github.com/python/cpython/tree/c23e2cf0b5020bbe5f33c686037cae308cf3bc34
define static no_location in function scopehttps://github.com/python/cpython/pull/93682/commits/fc7455552ce1cafdbadf15d133aef72aff4ca50e
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
fc74555https://github.com/python/cpython/pull/93682/commits/fc7455552ce1cafdbadf15d133aef72aff4ca50e
https://github.com/python/cpython/tree/fc7455552ce1cafdbadf15d133aef72aff4ca50e
are we const now?https://github.com/python/cpython/pull/93682/commits/9220fc12ff64cc31d5799309d8d0ebe892ed1418
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
9220fc1https://github.com/python/cpython/pull/93682/commits/9220fc12ff64cc31d5799309d8d0ebe892ed1418
https://github.com/python/cpython/tree/9220fc12ff64cc31d5799309d8d0ebe892ed1418
trivial stuffhttps://github.com/python/cpython/pull/93682/commits/9b5dc34b512317fe6a0ff5915a622cb5040b935c
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
9b5dc34https://github.com/python/cpython/pull/93682/commits/9b5dc34b512317fe6a0ff5915a622cb5040b935c
https://github.com/python/cpython/tree/9b5dc34b512317fe6a0ff5915a622cb5040b935c
Merge remote-tracking branch 'upstream/main' into codegen-reduce-repetitionhttps://github.com/python/cpython/pull/93682/commits/5330060a6b3a8f11cff58a3b3a72c0f2aa287ad5
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
5330060https://github.com/python/cpython/pull/93682/commits/5330060a6b3a8f11cff58a3b3a72c0f2aa287ad5
https://github.com/python/cpython/tree/5330060a6b3a8f11cff58a3b3a72c0f2aa287ad5
remove two unused fields from struct assemblerhttps://github.com/python/cpython/pull/93682/commits/414e26a4a0f92b4db8623a0c5476e885452ee096
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
414e26ahttps://github.com/python/cpython/pull/93682/commits/414e26a4a0f92b4db8623a0c5476e885452ee096
https://github.com/python/cpython/tree/414e26a4a0f92b4db8623a0c5476e885452ee096
define NO_LOCATION as a static const in global scopehttps://github.com/python/cpython/pull/93682/commits/26dc190be73b24ca25bbc3c377e1745ba7c47c9e
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
26dc190https://github.com/python/cpython/pull/93682/commits/26dc190be73b24ca25bbc3c377e1745ba7c47c9e
https://github.com/python/cpython/tree/26dc190be73b24ca25bbc3c377e1745ba7c47c9e
Merge remote-tracking branch 'upstream/main' into codegen-reduce-repetitionhttps://github.com/python/cpython/pull/93682/commits/98d24f2e6355c1fc42c4b95f26be7e9437e161c8
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
98d24f2https://github.com/python/cpython/pull/93682/commits/98d24f2e6355c1fc42c4b95f26be7e9437e161c8
https://github.com/python/cpython/tree/98d24f2e6355c1fc42c4b95f26be7e9437e161c8
Merge remote-tracking branch 'upstream/main' into codegen-reduce-repetitionhttps://github.com/python/cpython/pull/93682/commits/7851ccd2e4e2e3e4800ce8f847106df70a4d205b
https://github.com/iritkatriel
iritkatrielhttps://github.com/python/cpython/commits?author=iritkatriel
7851ccdhttps://github.com/python/cpython/pull/93682/commits/7851ccd2e4e2e3e4800ce8f847106df70a4d205b
https://github.com/python/cpython/tree/7851ccd2e4e2e3e4800ce8f847106df70a4d205b
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.