René's URL Explorer Experiment


Title: gh-106529: Split FOR_ITER_{LIST,TUPLE} into uops by gvanrossum · Pull Request #106696 · python/cpython · GitHub

Open Graph Title: gh-106529: Split FOR_ITER_{LIST,TUPLE} into uops by gvanrossum · Pull Request #106696 · python/cpython

X Title: gh-106529: Split FOR_ITER_{LIST,TUPLE} into uops by gvanrossum · Pull Request #106696 · python/cpython

Description: Same recipe as FOR_ITER_RANGE. I refactored the Tier 2 transformation code to handle similar cases. I had to fix a bug in the space reservation code, and decided to add some macros and an extra gua...

Open Graph Description: Same recipe as FOR_ITER_RANGE. I refactored the Tier 2 transformation code to handle similar cases. I had to fix a bug in the space reservation code, and decided to add some macros and an extra gua...

X Description: Same recipe as FOR_ITER_RANGE. I refactored the Tier 2 transformation code to handle similar cases. I had to fix a bug in the space reservation code, and decided to add some macros and an extra gua...

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:c6c98528-8186-c647-2ae7-8777430db02f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE77A:22F528:9D86C9:DDE184:696A2F75
html-safe-nonce07f8a5a0bd09b53e74f41b488854a25ff7e8240059a78fa5365851c8778b2d52
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzdBOjIyRjUyODo5RDg2Qzk6RERFMTg0OjY5NkEyRjc1IiwidmlzaXRvcl9pZCI6IjE5NDQwMzg2NjY5NjYyNjAzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac044bf9aa8e809d31f38f531b1a0ca5c533f4d98a3ac8a14de114481fcef09ce0
hovercard-subject-tagpull_request:1432004606
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/106696/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/0f3a38b1174611f67156c6219aadf5b2693406ab37d0e09f382ca94e4bb84a0f/python/cpython/pull/106696
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0f3a38b1174611f67156c6219aadf5b2693406ab37d0e09f382ca94e4bb84a0f/python/cpython/pull/106696
og:image:altSame recipe as FOR_ITER_RANGE. I refactored the Tier 2 transformation code to handle similar cases. I had to fix a bug in the space reservation code, and decided to add some macros and an extra gua...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegvanrossum
hostnamegithub.com
expected-hostnamegithub.com
Noneade130928b3890d20ecf9c887468a17e88d5c9a740ea2a85c2c2162e7c58e623
turbo-cache-controlno-preview
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
releasec00842167ca2e5b13e8171812965d503e925ece6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/106696#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F106696
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%2F106696
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/106696
Reloadhttps://github.com/python/cpython/pull/106696
Reloadhttps://github.com/python/cpython/pull/106696
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/106696
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/106696
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
Jump to bottomhttps://github.com/python/cpython/pull/106696#issue-comment-box
gvanrossumhttps://github.com/gvanrossum
python:mainhttps://github.com/python/cpython/tree/main
gvanrossum:for-iter-list-tuplehttps://github.com/gvanrossum/cpython/tree/for-iter-list-tuple
gh-106529: Split FOR_ITER_{LIST,TUPLE} into uops https://github.com/python/cpython/pull/106696#top
gvanrossumhttps://github.com/gvanrossum
python:mainhttps://github.com/python/cpython/tree/main
gvanrossum:for-iter-list-tuplehttps://github.com/gvanrossum/cpython/tree/for-iter-list-tuple
Conversation 12 https://github.com/python/cpython/pull/106696
Commits 13 https://github.com/python/cpython/pull/106696/commits
Checks 0 https://github.com/python/cpython/pull/106696/checks
Files changed https://github.com/python/cpython/pull/106696/files
Please reload this pagehttps://github.com/python/cpython/pull/106696
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Jul 12, 2023https://github.com/python/cpython/pull/106696#issue-1801778046
Please reload this pagehttps://github.com/python/cpython/pull/106696
Branching design for Tier 2 (uops) interpreter #106529https://github.com/python/cpython/issues/106529
Please reload this pagehttps://github.com/python/cpython/pull/106696
gvanrossumhttps://github.com/gvanrossum
July 12, 2023 11:13https://github.com/python/cpython/pull/106696#commits-pushed-1f29466
https://github.com/gvanrossum
Attack FOR_ITER_LIST, part 1 (Tier 1)https://github.com/python/cpython/pull/106696/commits/1f294669ee635a449ab8cb0801e93928596dfa49
1f29466https://github.com/python/cpython/pull/106696/commits/1f294669ee635a449ab8cb0801e93928596dfa49
https://github.com/gvanrossum
FOR_ITER_LIST Tier 2; fix a reservation bughttps://github.com/python/cpython/pull/106696/commits/020c4c77a4f03450a5eb7daf52db03077cb52901
020c4c7https://github.com/python/cpython/pull/106696/commits/020c4c77a4f03450a5eb7daf52db03077cb52901
https://github.com/gvanrossum
Make reserving space less error-pronehttps://github.com/python/cpython/pull/106696/commits/a94e583d7443b86c1ce8b78a64831c53310ad7c8
a94e583https://github.com/python/cpython/pull/106696/commits/a94e583d7443b86c1ce8b78a64831c53310ad7c8
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jul 12, 2023https://github.com/python/cpython/pull/106696#event-9804127953
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Jul 12, 2023 https://github.com/python/cpython/pull/106696#ref-issue-1794053965
Branching design for Tier 2 (uops) interpreter #106529 https://github.com/python/cpython/issues/106529
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Jul 12, 2023https://github.com/python/cpython/pull/106696#event-9804130727
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
iritkatrielhttps://github.com/iritkatriel
July 12, 2023 21:23https://github.com/python/cpython/pull/106696#event-9804140658
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Jul 12, 2023https://github.com/python/cpython/pull/106696#issuecomment-1633232475
@iritkatrielhttps://github.com/iritkatriel
Please reload this pagehttps://github.com/python/cpython/pull/106696
gvanrossumhttps://github.com/gvanrossum
July 12, 2023 14:27https://github.com/python/cpython/pull/106696#commits-pushed-3f3a9e8
https://github.com/gvanrossum
Add test for FOR_ITER_LIST in Tier 2https://github.com/python/cpython/pull/106696/commits/3f3a9e8fd9f84a63d0497fa2d7089c28d239bede
3f3a9e8https://github.com/python/cpython/pull/106696/commits/3f3a9e8fd9f84a63d0497fa2d7089c28d239bede
https://github.com/gvanrossum
FOR_ITER_TUPLE Tier 1https://github.com/python/cpython/pull/106696/commits/ff08319a4bef35a04c104bae38563609061ee8cb
ff08319https://github.com/python/cpython/pull/106696/commits/ff08319a4bef35a04c104bae38563609061ee8cb
https://github.com/gvanrossum
FOR_ITER_TUPLE Tier 2https://github.com/python/cpython/pull/106696/commits/c4273518356ad26fbeef0e466b291833d12dbd4d
c427351https://github.com/python/cpython/pull/106696/commits/c4273518356ad26fbeef0e466b291833d12dbd4d
https://github.com/gvanrossum
Test for FOR_ITER_TUPLE Tier 2https://github.com/python/cpython/pull/106696/commits/173cc7c448981312613dc8bd941cafd2f449f856
173cc7chttps://github.com/python/cpython/pull/106696/commits/173cc7c448981312613dc8bd941cafd2f449f856
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Jul 12, 2023https://github.com/python/cpython/pull/106696#event-9804332239
https://github.com/gvanrossum
Tweak dummy definitions/includeshttps://github.com/python/cpython/pull/106696/commits/6681cd2f5b842ccdb6ec36fa28081399867ee458
6681cd2https://github.com/python/cpython/pull/106696/commits/6681cd2f5b842ccdb6ec36fa28081399867ee458
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Jul 13, 2023 https://github.com/python/cpython/pull/106696#ref-issue-1795924058
Call design for Tier 2 (uops) interpreter #106581 https://github.com/python/cpython/issues/106581
https://github.com/iritkatriel
iritkatrielhttps://github.com/iritkatriel
Jul 13, 2023 https://github.com/python/cpython/pull/106696#pullrequestreview-1528045781
View reviewed changes https://github.com/python/cpython/pull/106696/files/173cc7c448981312613dc8bd941cafd2f449f856
Python/bytecodes.chttps://github.com/python/cpython/pull/106696/files/173cc7c448981312613dc8bd941cafd2f449f856#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
Please reload this pagehttps://github.com/python/cpython/pull/106696
Python/bytecodes.chttps://github.com/python/cpython/pull/106696/files/173cc7c448981312613dc8bd941cafd2f449f856#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
Please reload this pagehttps://github.com/python/cpython/pull/106696
Python/bytecodes.chttps://github.com/python/cpython/pull/106696/files/173cc7c448981312613dc8bd941cafd2f449f856#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342
Please reload this pagehttps://github.com/python/cpython/pull/106696
Python/optimizer.chttps://github.com/python/cpython/pull/106696/files/173cc7c448981312613dc8bd941cafd2f449f856#diff-de09f74c4306be5ef0284d665091976873569094d645a35b48467ea2a11d67f7
Please reload this pagehttps://github.com/python/cpython/pull/106696
Python/optimizer.chttps://github.com/python/cpython/pull/106696/files/173cc7c448981312613dc8bd941cafd2f449f856#diff-de09f74c4306be5ef0284d665091976873569094d645a35b48467ea2a11d67f7
iritkatrielhttps://github.com/iritkatriel
Jul 13, 2023https://github.com/python/cpython/pull/106696#discussion_r1262337204
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/106696
gvanrossumhttps://github.com/gvanrossum
Jul 13, 2023https://github.com/python/cpython/pull/106696#discussion_r1262700826
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/106696
gvanrossumhttps://github.com/gvanrossum
July 13, 2023 12:17https://github.com/python/cpython/pull/106696#commits-pushed-354c892
https://github.com/gvanrossum
Merge remote-tracking branch 'origin/main' into for-iter-list-tuplehttps://github.com/python/cpython/pull/106696/commits/354c892e5f0b5de1386e15c545a49a897e57360f
354c892https://github.com/python/cpython/pull/106696/commits/354c892e5f0b5de1386e15c545a49a897e57360f
https://github.com/gvanrossum
Rename _ITER_EXHAUSTED_XXX to _IS_ITER_EXHAUSTED_XXXhttps://github.com/python/cpython/pull/106696/commits/13708da4ed780041501b2940af759cb9497bc9d6
13708dahttps://github.com/python/cpython/pull/106696/commits/13708da4ed780041501b2940af759cb9497bc9d6
https://github.com/gvanrossum
Fix testshttps://github.com/python/cpython/pull/106696/commits/93355ea52f0acb8565b9763749650f0fa2974523
93355eahttps://github.com/python/cpython/pull/106696/commits/93355ea52f0acb8565b9763749650f0fa2974523
https://github.com/gvanrossum
Improve formatting of FOR_ITER_XXX macroshttps://github.com/python/cpython/pull/106696/commits/52dc7f578aaa782809b3292bdf96e295f75675dc
52dc7f5https://github.com/python/cpython/pull/106696/commits/52dc7f578aaa782809b3292bdf96e295f75675dc
https://github.com/gvanrossum
Use Py_UNREACHABLE() instead of assert(0)https://github.com/python/cpython/pull/106696/commits/63f101df6acab03c70ed682168b2dd0c036e198f
63f101dhttps://github.com/python/cpython/pull/106696/commits/63f101df6acab03c70ed682168b2dd0c036e198f
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Jul 13, 2023https://github.com/python/cpython/pull/106696#issuecomment-1635062676
Please reload this pagehttps://github.com/python/cpython/pull/106696
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
025995fhttps://github.com/python/cpython/commit/025995feadaeebeef5d808f2564f0fd65b704ea5
Jul 14, 2023https://github.com/python/cpython/pull/106696#event-9816587231
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jul 14, 2023https://github.com/python/cpython/pull/106696#event-9816587419
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
July 14, 2023 00:27https://github.com/python/cpython/pull/106696#event-9816587496
kgdiemhttps://github.com/kgdiem
Jul 14, 2023 https://github.com/python/cpython/pull/106696#ref-commit-c15f572
https://github.com/gvanrossum
https://github.com/kgdiem
pythongh-106529https://github.com/python/cpython/issues/106529
: Split FOR_ITER_{LIST,TUPLE} into uops (https://github.com/kgdiem/cpython/commit/c15f57230f9c432c41f31672bb663853f283209b
python#106696https://github.com/python/cpython/pull/106696
)https://github.com/kgdiem/cpython/commit/c15f57230f9c432c41f31672bb663853f283209b
c15f572https://github.com/kgdiem/cpython/commit/c15f57230f9c432c41f31672bb663853f283209b
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Jul 14, 2023 https://github.com/python/cpython/pull/106696#ref-pullrequest-1805554613
gh-106529: Fix subtle Tier 2 edge case with list iterator #106756 https://github.com/python/cpython/pull/106756
gvanrossumhttps://github.com/gvanrossum
Jul 15, 2023 https://github.com/python/cpython/pull/106696#ref-commit-0db85ee
https://github.com/gvanrossum
gh-106529https://github.com/python/cpython/issues/106529
: Fix subtle Tier 2 edge case with list iterator (https://github.com/python/cpython/commit/0db85eeba762e72f9f3c027e432cdebc627aac6c
#106756https://github.com/python/cpython/pull/106756
)https://github.com/python/cpython/commit/0db85eeba762e72f9f3c027e432cdebc627aac6c
0db85eehttps://github.com/python/cpython/commit/0db85eeba762e72f9f3c027e432cdebc627aac6c
gh-106696https://github.com/python/cpython/pull/106696
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F106696
https://github.com/iritkatriel
iritkatriel https://github.com/iritkatriel
https://github.com/python/cpython/pull/106696/files/173cc7c448981312613dc8bd941cafd2f449f856
https://github.com/markshannon
markshannon https://github.com/markshannon
https://github.com/python/cpython/pull/106696/files/173cc7c448981312613dc8bd941cafd2f449f856
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Please reload this pagehttps://github.com/python/cpython/pull/106696
https://github.com/gvanrossum
https://github.com/iritkatriel
https://github.com/markshannon
https://github.com/bedevere-bot
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.