René's URL Explorer Experiment


Title: GH-145667: Merge `GET_ITER` and `GET_YIELD_FROM_ITER` by markshannon · Pull Request #146120 · python/cpython · GitHub

Open Graph Title: GH-145667: Merge `GET_ITER` and `GET_YIELD_FROM_ITER` by markshannon · Pull Request #146120 · python/cpython

X Title: GH-145667: Merge `GET_ITER` and `GET_YIELD_FROM_ITER` by markshannon · Pull Request #146120 · python/cpython

Description: Also modifies SEND to make it a bit more like FOR_ITER as both are now fed by GET_ITER. Apart from saving an opcode, this will enable broadly similar optimizations to be applied to SEND as are already applied to FOR_ITER. Which will be able to: significantly improve the performance of yield from seq where seq is a common iterable, like list. allow the JIT to trace through SEND as it will be mostly specialized. For now, this is broadly performance neutral, between +0% and -1%, mostly about 0%. Issue: gh-145667

Open Graph Description: Also modifies SEND to make it a bit more like FOR_ITER as both are now fed by GET_ITER. Apart from saving an opcode, this will enable broadly similar optimizations to be applied to SEND as are alre...

X Description: Also modifies SEND to make it a bit more like FOR_ITER as both are now fed by GET_ITER. Apart from saving an opcode, this will enable broadly similar optimizations to be applied to SEND as are alre...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:470cca23-da60-2b35-e4a1-e492ee9f7e60
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9610:3A68A9:4AC8D06:68A8D91:6A50EC41
html-safe-noncead80c2507120e169290b2a69e60855dcc2455b80b90bbff9a0f0cdf0e4591eef
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjEwOjNBNjhBOTo0QUM4RDA2OjY4QThEOTE6NkE1MEVDNDEiLCJ2aXNpdG9yX2lkIjoiODQ5Njg3NjQ1MjIwOTI5MDMwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac16b1122782eb03e08ab07837bb1d4f12daef22fe9169142b153a700a0295e92c
hovercard-subject-tagpull_request:3415720261
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/146120/files
twitter:imagehttps://avatars.githubusercontent.com/u/9448417?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/9448417?s=400&v=4
og:image:altAlso modifies SEND to make it a bit more like FOR_ITER as both are now fed by GET_ITER. Apart from saving an opcode, this will enable broadly similar optimizations to be applied to SEND as are alre...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None72b13e0e8d0319acdd27a145cfe73f4f06c791713d0ac4690e41fb68ad28cac0
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
releasefb19d617b534959801b4b7453938ecf1dfa22131
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/146120/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F146120%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2F146120%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/146120/files
Reloadhttps://github.com/python/cpython/pull/146120/files
Reloadhttps://github.com/python/cpython/pull/146120/files
Please reload this pagehttps://github.com/python/cpython/pull/146120/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/146120/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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
markshannonhttps://github.com/markshannon
python:mainhttps://github.com/python/cpython/tree/main
markshannon:breakup-yield-from-iterhttps://github.com/markshannon/cpython/tree/breakup-yield-from-iter
Conversation 9 https://github.com/python/cpython/pull/146120
Commits 4 https://github.com/python/cpython/pull/146120/commits
Checks 86 https://github.com/python/cpython/pull/146120/checks
Files changed https://github.com/python/cpython/pull/146120/files
Please reload this pagehttps://github.com/python/cpython/pull/146120/files
GH-145667: Merge GET_ITER and GET_YIELD_FROM_ITER https://github.com/python/cpython/pull/146120/files#top
Show all changes 4 commits https://github.com/python/cpython/pull/146120/files
29a99f4 Merge GET_ITER and GET_YIELD_FROM_ITER. Modify SEND to make it a bit … markshannon Feb 26, 2026 https://github.com/python/cpython/pull/146120/commits/29a99f480c1cfcc1d09b8ef621e9909a7811ba91
34b75e4 Add news markshannon Mar 20, 2026 https://github.com/python/cpython/pull/146120/commits/34b75e42bbed1c81fc6bf4d204b568513c3d8c2a
e3ea233 Merge branch 'main' into breakup-yield-from-iter markshannon Mar 20, 2026 https://github.com/python/cpython/pull/146120/commits/e3ea2338c8320105abdcea1afe6d0e3b635bffe4
1b8f043 Merge branch 'main' into breakup-yield-from-iter markshannon Mar 20, 2026 https://github.com/python/cpython/pull/146120/commits/1b8f043ed2e4297ef63b33ae048077a57e8daeb9
Clear filters https://github.com/python/cpython/pull/146120/files
Please reload this pagehttps://github.com/python/cpython/pull/146120/files
Please reload this pagehttps://github.com/python/cpython/pull/146120/files
pycore_ceval.h https://github.com/python/cpython/pull/146120/files#diff-9e7eb7e81667528dfa3a35bbf32fe622d4721c3c71385ea0ea2250abbd15d545
pycore_interpframe.h https://github.com/python/cpython/pull/146120/files#diff-a6652fbbdfbbc0185be9175f6e7219e704d7a86a874020f3ee99f70955892cff
pycore_magic_number.h https://github.com/python/cpython/pull/146120/files#diff-cab675717b887b20316ee0113f1e44bbd5db4e4a6e04ff75eb3996deffeafed4
pycore_opcode_metadata.h https://github.com/python/cpython/pull/146120/files#diff-72bc4c0445516cc3eabd536220b2459617491ffaabbdb8a7c5381f36c991e378
pycore_opcode_utils.h https://github.com/python/cpython/pull/146120/files#diff-38427bd410ffc8fb7b8a772b4743daa4fe6a229b13264e73e232172b7219c671
pycore_uop_ids.h https://github.com/python/cpython/pull/146120/files#diff-2a420e4d0d58009249c0f73f7c822167b053bd51cb213b20179bd2aebfc66ff9
pycore_uop_metadata.h https://github.com/python/cpython/pull/146120/files#diff-55e65a72fa31e9b746e03076d2c74b716c0c1171663f36960b2339fcbfae9bab
opcode_ids.h https://github.com/python/cpython/pull/146120/files#diff-e4ecf20b65dcacb3c91fc910b83d99a2ca60282b51aa65e7902a662c227e6187
_opcode_metadata.py https://github.com/python/cpython/pull/146120/files#diff-3f2acff9cdbb005de538e3ba43dc12406bf414047d7d018476bac0048b5056e4
test_dis.py https://github.com/python/cpython/pull/146120/files#diff-fd7b118a01a9695dfa16eea9381d3c7b0652e1b7b55f51ff052a1f620d175642
test_peepholer.py https://github.com/python/cpython/pull/146120/files#diff-bcf92ed219340e9e0c52401909828c2e9a821541660073e24d64dd996beaf842
2026-03-20-11-34-17.gh-issue-145667._Agp9o.rst https://github.com/python/cpython/pull/146120/files#diff-47e1a999f2174c9e0e0b4828aba6d14116255ee0a961595c55dfb23490bb295f
asyncio.c https://github.com/python/cpython/pull/146120/files#diff-d3a9f5049ca6c549a4feb928b6d06a7dbce8486745bb06f6b8254cddce207e32
test_cases.c.h https://github.com/python/cpython/pull/146120/files#diff-2852a58ed53ab1473b74dbdc4165885a9b74865b6d71e48fa4813d6289fa1838
test_targets.h https://github.com/python/cpython/pull/146120/files#diff-096e9952e325d9c098b3f85e87e7f41369678d0f019f26c8772531146896d50d
codeobject.c https://github.com/python/cpython/pull/146120/files#diff-6f869eb8beb7cbe4bc6817584b99ad567f88962fa67f7beca25d009dc401234d
genobject.c https://github.com/python/cpython/pull/146120/files#diff-2a0c449b68605ebd0872fd232e60ce7e838a77782a6d2e364764f99514fb508a
test_frozenmain.h https://github.com/python/cpython/pull/146120/files#diff-dcbbf153f77c69fb3a08746516bb9baaf46b9465c941221d1d495123e92cc862
bytecodes.c https://github.com/python/cpython/pull/146120/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
ceval.c https://github.com/python/cpython/pull/146120/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
codegen.c https://github.com/python/cpython/pull/146120/files#diff-6d58b0ddc066ad12ebc378b62c4189335bd57c83aece11072c76fd86a78a1a4a
executor_cases.c.h https://github.com/python/cpython/pull/146120/files#diff-a1c3430c42a66c16e6d2e154491a6da993b187b27c628545a12a02c7b2a06b81
flowgraph.c https://github.com/python/cpython/pull/146120/files#diff-3cbf15668c31488528b7ab0f903c674a0ecf550f4f53c1be6cf8cd965246c2a0
generated_cases.c.h https://github.com/python/cpython/pull/146120/files#diff-4ef46fa654f95502e49a24f7dc8ee31a4cac9b3433fe9cd2b2d4dd78cfbad448
opcode_targets.h https://github.com/python/cpython/pull/146120/files#diff-d3363a4083b77b9157d0bf07c2e87f3d3464a8b4360d5d23b07bbb23061f007a
optimizer_bytecodes.c https://github.com/python/cpython/pull/146120/files#diff-e5bd2b14b0b10f0f47786e26306d689ed1361c3dc3b11dcc3ea52b8a2422ff64
optimizer_cases.c.h https://github.com/python/cpython/pull/146120/files#diff-ed4567b3e67709ec57bf4df91ef058cfcbe00d7da11cd2a75e38241fa1ca99d2
record_functions.c.h https://github.com/python/cpython/pull/146120/files#diff-ac2bf70082a97de53db16bbb949b29240f59f89c4b9ad93928b3926738cbb74c
specialize.c https://github.com/python/cpython/pull/146120/files#diff-22e653d878778ca28317261f7826545288d02fd9980cf485d0329f28a34993f2
analyzer.py https://github.com/python/cpython/pull/146120/files#diff-bf1d5618934b787df486d8077f48217f17bf4321b9a151528f67b6e6f383976b
Include/internal/pycore_ceval.hhttps://github.com/python/cpython/pull/146120/files#diff-9e7eb7e81667528dfa3a35bbf32fe622d4721c3c71385ea0ea2250abbd15d545
View file https://github.com/markshannon/cpython/blob/1b8f043ed2e4297ef63b33ae048077a57e8daeb9/Include/internal/pycore_ceval.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/146120/{{ revealButtonHref }}
https://github.com/python/cpython/pull/146120/files#diff-9e7eb7e81667528dfa3a35bbf32fe622d4721c3c71385ea0ea2250abbd15d545
https://github.com/python/cpython/pull/146120/files#diff-9e7eb7e81667528dfa3a35bbf32fe622d4721c3c71385ea0ea2250abbd15d545
Include/internal/pycore_interpframe.hhttps://github.com/python/cpython/pull/146120/files#diff-a6652fbbdfbbc0185be9175f6e7219e704d7a86a874020f3ee99f70955892cff
View file https://github.com/markshannon/cpython/blob/1b8f043ed2e4297ef63b33ae048077a57e8daeb9/Include/internal/pycore_interpframe.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/146120/{{ revealButtonHref }}
https://github.com/python/cpython/pull/146120/files#diff-a6652fbbdfbbc0185be9175f6e7219e704d7a86a874020f3ee99f70955892cff
https://github.com/python/cpython/pull/146120/files#diff-a6652fbbdfbbc0185be9175f6e7219e704d7a86a874020f3ee99f70955892cff
Include/internal/pycore_magic_number.hhttps://github.com/python/cpython/pull/146120/files#diff-cab675717b887b20316ee0113f1e44bbd5db4e4a6e04ff75eb3996deffeafed4
View file https://github.com/markshannon/cpython/blob/1b8f043ed2e4297ef63b33ae048077a57e8daeb9/Include/internal/pycore_magic_number.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/146120/{{ revealButtonHref }}
https://github.com/python/cpython/pull/146120/files#diff-cab675717b887b20316ee0113f1e44bbd5db4e4a6e04ff75eb3996deffeafed4
Please reload this pagehttps://github.com/python/cpython/pull/146120/files
https://github.com/python/cpython/pull/146120/files#diff-cab675717b887b20316ee0113f1e44bbd5db4e4a6e04ff75eb3996deffeafed4
https://github.com/python/cpython/pull/146120/files#diff-cab675717b887b20316ee0113f1e44bbd5db4e4a6e04ff75eb3996deffeafed4
Include/internal/pycore_opcode_metadata.hhttps://github.com/python/cpython/pull/146120/files#diff-72bc4c0445516cc3eabd536220b2459617491ffaabbdb8a7c5381f36c991e378
View file https://github.com/markshannon/cpython/blob/1b8f043ed2e4297ef63b33ae048077a57e8daeb9/Include/internal/pycore_opcode_metadata.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/146120/files
Include/internal/pycore_opcode_utils.hhttps://github.com/python/cpython/pull/146120/files#diff-38427bd410ffc8fb7b8a772b4743daa4fe6a229b13264e73e232172b7219c671
View file https://github.com/markshannon/cpython/blob/1b8f043ed2e4297ef63b33ae048077a57e8daeb9/Include/internal/pycore_opcode_utils.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/146120/{{ revealButtonHref }}
https://github.com/python/cpython/pull/146120/files#diff-38427bd410ffc8fb7b8a772b4743daa4fe6a229b13264e73e232172b7219c671
https://github.com/python/cpython/pull/146120/files#diff-38427bd410ffc8fb7b8a772b4743daa4fe6a229b13264e73e232172b7219c671
Please reload this pagehttps://github.com/python/cpython/pull/146120/files
Please reload this pagehttps://github.com/python/cpython/pull/146120/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.