René's URL Explorer Experiment


Title: gh-104377: fix cell in comprehension that is free in outer scope by carljm · Pull Request #104394 · python/cpython · GitHub

Open Graph Title: gh-104377: fix cell in comprehension that is free in outer scope by carljm · Pull Request #104394 · python/cpython

X Title: gh-104377: fix cell in comprehension that is free in outer scope by carljm · Pull Request #104394 · python/cpython

Description: Fix the case where a comprehension wraps its iteration variable in a cell inside the comprehension (i.e. it's used in a lambda's closure), but that same variable name is free in the outer scope. Al...

Open Graph Description: Fix the case where a comprehension wraps its iteration variable in a cell inside the comprehension (i.e. it's used in a lambda's closure), but that same variable name is free in the outer s...

X Description: Fix the case where a comprehension wraps its iteration variable in a cell inside the comprehension (i.e. it's used in a lambda's closure), but that same variable name is free in the...

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

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:53ab5e8c-01b7-e941-0ce0-a15c531a1b61
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8FAA:1A9004:5537F:77BFE:696A0194
html-safe-nonce9cd9b85d6dbb73360004be2ca65c708aab25677852ad52dd80cf8d08427ead23
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RkFBOjFBOTAwNDo1NTM3Rjo3N0JGRTo2OTZBMDE5NCIsInZpc2l0b3JfaWQiOiI0NzQ4OTUwMzA1OTM3OTQ5MDc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb40ca532188124901a194379d8148d34f4b25b873b9ddf65ac30035c0a993edf
hovercard-subject-tagpull_request:1347324011
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/104394/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/59d8a7c06f63d49a8bd3005566648f59279d9f129dbece8a6410ade32191d8d8/python/cpython/pull/104394
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/59d8a7c06f63d49a8bd3005566648f59279d9f129dbece8a6410ade32191d8d8/python/cpython/pull/104394
og:image:altFix the case where a comprehension wraps its iteration variable in a cell inside the comprehension (i.e. it's used in a lambda's closure), but that same variable name is free in the outer s...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecarljm
hostnamegithub.com
expected-hostnamegithub.com
None578c119ff0247c8b2f2491fbf4fc0395cdf909d4df66598cebdc96ddfc4418dc
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
release671c2f67171dbced24284331f3133a613d08c366
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/104394#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F104394
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%2F104394
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/104394
Reloadhttps://github.com/python/cpython/pull/104394
Reloadhttps://github.com/python/cpython/pull/104394
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/104394
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/104394
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/104394#issue-comment-box
JelleZijlstrahttps://github.com/JelleZijlstra
python:mainhttps://github.com/python/cpython/tree/main
carljm:segfaulthttps://github.com/carljm/cpython/tree/segfault
gh-104377: fix cell in comprehension that is free in outer scope https://github.com/python/cpython/pull/104394#top
JelleZijlstrahttps://github.com/JelleZijlstra
python:mainhttps://github.com/python/cpython/tree/main
carljm:segfaulthttps://github.com/carljm/cpython/tree/segfault
Conversation 1 https://github.com/python/cpython/pull/104394
Commits 1 https://github.com/python/cpython/pull/104394/commits
Checks 0 https://github.com/python/cpython/pull/104394/checks
Files changed https://github.com/python/cpython/pull/104394/files
Please reload this pagehttps://github.com/python/cpython/pull/104394
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/carljm
carljmhttps://github.com/carljm
May 11, 2023https://github.com/python/cpython/pull/104394#issue-1706085473
Please reload this pagehttps://github.com/python/cpython/pull/104394
#104377https://github.com/python/cpython/issues/104377
Segfault with lambda nested in comprehension #104377https://github.com/python/cpython/issues/104377
Please reload this pagehttps://github.com/python/cpython/pull/104394
https://github.com/carljm
pythongh-104377https://github.com/python/cpython/issues/104377
: fix cell in comprehension that is free outsidehttps://github.com/python/cpython/pull/104394/commits/cb8a531d4c67f2502e380cb27f890b9a7b0ebd36
cb8a531https://github.com/python/cpython/pull/104394/commits/cb8a531d4c67f2502e380cb27f890b9a7b0ebd36
https://github.com/carljm
carljmhttps://github.com/carljm
iritkatrielhttps://github.com/iritkatriel
markshannonhttps://github.com/markshannon
code ownershttps://github.com/python/cpython/blob/27419a71b5aa18baf24f4e640c5a6e8df9338928/.github/CODEOWNERS#L30
May 11, 2023 15:43https://github.com/python/cpython/pull/104394#event-9224022393
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
May 11, 2023https://github.com/python/cpython/pull/104394#event-9224022789
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
May 11, 2023 https://github.com/python/cpython/pull/104394#ref-issue-1704852282
Segfault with lambda nested in comprehension #104377 https://github.com/python/cpython/issues/104377
https://github.com/carljm
carljmhttps://github.com/carljm
JelleZijlstrahttps://github.com/JelleZijlstra
May 11, 2023 15:43https://github.com/python/cpython/pull/104394#event-9224024268
https://github.com/carljm
carljmhttps://github.com/carljm
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
May 11, 2023https://github.com/python/cpython/pull/104394#event-9224026218
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
May 11, 2023 https://github.com/python/cpython/pull/104394#ref-issue-1706660961
PEP 709 segfault with nested comprehensions plus lambdas #104404 https://github.com/python/cpython/issues/104404
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
May 11, 2023 https://github.com/python/cpython/pull/104394#pullrequestreview-1423586877
View reviewed changes https://github.com/python/cpython/pull/104394/files/cb8a531d4c67f2502e380cb27f890b9a7b0ebd36
Lib/test/test_listcomps.pyhttps://github.com/python/cpython/pull/104394/files/cb8a531d4c67f2502e380cb27f890b9a7b0ebd36#diff-6f30ce607962fa738e784af87142b4bb73d48160a1f354eea2cbf31a5bcb310a
JelleZijlstrahttps://github.com/JelleZijlstra
May 11, 2023https://github.com/python/cpython/pull/104394#discussion_r1191782454
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/104394
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
May 11, 2023 https://github.com/python/cpython/pull/104394#pullrequestreview-1423588403
View reviewed changes https://github.com/python/cpython/pull/104394/files/cb8a531d4c67f2502e380cb27f890b9a7b0ebd36
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
May 11, 2023https://github.com/python/cpython/pull/104394#event-9227723607
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
ac66cc1https://github.com/python/cpython/commit/ac66cc17f21653b66321b50d0a1f792982fca21f
May 11, 2023https://github.com/python/cpython/pull/104394#event-9227725466
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
May 11, 2023https://github.com/python/cpython/pull/104394#event-9227725773
carljmhttps://github.com/carljm
May 12, 2023 https://github.com/python/cpython/pull/104394#ref-commit-8efd7c6
https://github.com/carljm
Merge branch 'main' into supermonhttps://github.com/carljm/cpython/commit/8efd7c6f17e0faeca8fe6337a9eeca472d74b0ba
8efd7c6https://github.com/carljm/cpython/commit/8efd7c6f17e0faeca8fe6337a9eeca472d74b0ba
pythongh-91896https://github.com/python/cpython/issues/91896
python#104422https://github.com/python/cpython/pull/104422
pythonGH-104371https://github.com/python/cpython/issues/104371
python#104417https://github.com/python/cpython/pull/104417
pythongh-104415https://github.com/python/cpython/issues/104415
python#104416https://github.com/python/cpython/pull/104416
pythonGH-86275https://github.com/python/cpython/issues/86275
python#22863https://github.com/python/cpython/pull/22863
pythonGH-103082https://github.com/python/cpython/issues/103082
pythonGH-104387https://github.com/python/cpython/pull/104387
pythongh-93649https://github.com/python/cpython/issues/93649
pythonGH-104403https://github.com/python/cpython/pull/104403
pythongh-104389https://github.com/python/cpython/issues/104389
python#104390https://github.com/python/cpython/pull/104390
pythongh-101819https://github.com/python/cpython/issues/101819
python#104386https://github.com/python/cpython/pull/104386
pythongh-104413https://github.com/python/cpython/issues/104413
python#104414https://github.com/python/cpython/pull/104414
python#104408https://github.com/python/cpython/pull/104408
pythongh-87526https://github.com/python/cpython/issues/87526
python#24700https://github.com/python/cpython/pull/24700
pythongh-91896https://github.com/python/cpython/issues/91896
python#104294https://github.com/python/cpython/pull/104294
pythongh-104371https://github.com/python/cpython/issues/104371
python#104378https://github.com/python/cpython/pull/104378
pythongh-104377https://github.com/python/cpython/issues/104377
python#104394https://github.com/python/cpython/pull/104394
pythongh-104392https://github.com/python/cpython/issues/104392
python#104393https://github.com/python/cpython/pull/104393
pythongh-104396https://github.com/python/cpython/issues/104396
pythongh-104397https://github.com/python/cpython/pull/104397
pythongh-99108https://github.com/python/cpython/issues/99108
python#104401https://github.com/python/cpython/pull/104401
pythongh-104301https://github.com/python/cpython/issues/104301
python#104342https://github.com/python/cpython/pull/104342
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%2F104394
https://github.com/JelleZijlstra
JelleZijlstra https://github.com/JelleZijlstra
https://github.com/python/cpython/pull/104394/files/cb8a531d4c67f2502e380cb27f890b9a7b0ebd36
https://github.com/markshannon
markshannon https://github.com/markshannon
https://github.com/iritkatriel
iritkatriel https://github.com/iritkatriel
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Segfault with lambda nested in comprehension https://github.com/python/cpython/issues/104377
Please reload this pagehttps://github.com/python/cpython/pull/104394
https://github.com/carljm
https://github.com/JelleZijlstra
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.