René's URL Explorer Experiment


Title: PEP 572: TargetScopeError->SyntaxError, other SyntaxError adjustments by ncoghlan · Pull Request #1140 · python/peps · GitHub

Open Graph Title: PEP 572: TargetScopeError->SyntaxError, other SyntaxError adjustments by ncoghlan · Pull Request #1140 · python/peps

X Title: PEP 572: TargetScopeError->SyntaxError, other SyntaxError adjustments by ncoghlan · Pull Request #1140 · python/peps

Description: switch from the new TargetScopeError to a plain SyntaxError as per referenced python-dev discussion clarify rationale for those extra SyntaxError cases (we don't want current CPython implementation details to implicitly leak into the "do what CPython does" de facto language specification) broaden one of the error cases to handle the fact that CPython's symbol table analysis for a comprehension involves two different scopes and hence makes it difficult to detect when the target of a named expression in the iterable expression gets re-used as an iteration variable in the comprehension note that even dead code affects the symbol analysis pass

Open Graph Description: switch from the new TargetScopeError to a plain SyntaxError as per referenced python-dev discussion clarify rationale for those extra SyntaxError cases (we don't want current CPython implementa...

X Description: switch from the new TargetScopeError to a plain SyntaxError as per referenced python-dev discussion clarify rationale for those extra SyntaxError cases (we don't want current CPython implem...

Opengraph URL: https://github.com/python/peps/pull/1140

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits/:range(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:8e091209-8867-3c97-5194-4eb47a4140f0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC92A:2E4036:213440E:2CE4A90:6A655875
html-safe-nonce8144e0d5c4e2ea76475c2052c907a518f68c1db6c4bb0904d628e40ecefe5d67
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTJBOjJFNDAzNjoyMTM0NDBFOjJDRTRBOTA6NkE2NTU4NzUiLCJ2aXNpdG9yX2lkIjoiMjI4NDM0NzgyMDY2ODcwNDg4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac628315a76bdd2747edda4ae99844124c0f6012474fd761b86826694cf3a7a9a3
hovercard-subject-tagpull_request:304174725
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/peps/pull/1140/commits/2a868983100932085f21f86fd725daddff925162
twitter:imagehttps://avatars.githubusercontent.com/u/1026649?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1026649?s=400&v=4
og:image:altswitch from the new TargetScopeError to a plain SyntaxError as per referenced python-dev discussion clarify rationale for those extra SyntaxError cases (we don't want current CPython implementa...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/peps git https://github.com/python/peps.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id13414105
octolytics-dimension-repository_nwopython/peps
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id13414105
octolytics-dimension-repository_network_root_nwopython/peps
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
release309153364422b3c499922d1a2a6404910a58ed8e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/peps/pull/1140/commits/2a868983100932085f21f86fd725daddff925162#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fpeps%2Fpull%2F1140%2Fcommits%2F2a868983100932085f21f86fd725daddff925162
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
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
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%2Fpeps%2Fpull%2F1140%2Fcommits%2F2a868983100932085f21f86fd725daddff925162
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%2Fpeps
Reloadhttps://github.com/python/peps/pull/1140/commits/2a868983100932085f21f86fd725daddff925162
Reloadhttps://github.com/python/peps/pull/1140/commits/2a868983100932085f21f86fd725daddff925162
Reloadhttps://github.com/python/peps/pull/1140/commits/2a868983100932085f21f86fd725daddff925162
Please reload this pagehttps://github.com/python/peps/pull/1140/commits/2a868983100932085f21f86fd725daddff925162
python https://github.com/python
pepshttps://github.com/python/peps
Please reload this pagehttps://github.com/python/peps/pull/1140/commits/2a868983100932085f21f86fd725daddff925162
Notifications https://github.com/login?return_to=%2Fpython%2Fpeps
Fork 1.8k https://github.com/login?return_to=%2Fpython%2Fpeps
Star 5k https://github.com/login?return_to=%2Fpython%2Fpeps
Code https://github.com/python/peps
Issues 19 https://github.com/python/peps/issues
Pull requests 43 https://github.com/python/peps/pulls
Actions https://github.com/python/peps/actions
Security and quality 0 https://github.com/python/peps/security
Insights https://github.com/python/peps/pulse
Code https://github.com/python/peps
Issues https://github.com/python/peps/issues
Pull requests https://github.com/python/peps/pulls
Actions https://github.com/python/peps/actions
Security and quality https://github.com/python/peps/security
Insights https://github.com/python/peps/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fpeps%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fpeps%2Fissues%2Fnew%2Fchoose
ncoghlanhttps://github.com/ncoghlan
python:masterhttps://github.com/python/peps/tree/master
ncoghlan:bpo-37757-targetscopeerror-adjustmentshttps://github.com/ncoghlan/peps/tree/bpo-37757-targetscopeerror-adjustments
Conversation 15 https://github.com/python/peps/pull/1140
Commits 5 https://github.com/python/peps/pull/1140/commits
Checks 0 https://github.com/python/peps/pull/1140/checks
Files changed https://github.com/python/peps/pull/1140/files
Please reload this pagehttps://github.com/python/peps/pull/1140/commits/2a868983100932085f21f86fd725daddff925162
PEP 572: TargetScopeError->SyntaxError, other SyntaxError adjustments https://github.com/python/peps/pull/1140/commits/2a868983100932085f21f86fd725daddff925162#top
Show all changes 5 commits https://github.com/python/peps/pull/1140/files
cb27015 PEP 572: Update TargetScopeError section based on implementation ncoghlan Aug 5, 2019 https://github.com/python/peps/pull/1140/commits/cb270157377386b904f13715cc57f0e7c21b1b8d
7244266 Add note about dead code, fix markup ncoghlan Aug 5, 2019 https://github.com/python/peps/pull/1140/commits/7244266d72458851f132f4e46fd3f5345b5df7fd
6f7e3e6 PEP 572: address review comments ncoghlan Aug 9, 2019 https://github.com/python/peps/pull/1140/commits/6f7e3e67702593ea7dfc3f4d7ee805690f071c9a
2a86898 Add section noting post-acceptance changes ncoghlan Aug 9, 2019 https://github.com/python/peps/pull/1140/commits/2a868983100932085f21f86fd725daddff925162
64f21f7 python-dev reference for TargetScopeError removal ncoghlan Aug 9, 2019 https://github.com/python/peps/pull/1140/commits/64f21f7c25cb587e2f69242f8b892696a00a5912
Clear filters https://github.com/python/peps/pull/1140/commits/2a868983100932085f21f86fd725daddff925162
Please reload this pagehttps://github.com/python/peps/pull/1140/commits/2a868983100932085f21f86fd725daddff925162
Please reload this pagehttps://github.com/python/peps/pull/1140/commits/2a868983100932085f21f86fd725daddff925162
Prev https://github.com/python/peps/pull/1140/commits/6f7e3e67702593ea7dfc3f4d7ee805690f071c9a
Next https://github.com/python/peps/pull/1140/commits/64f21f7c25cb587e2f69242f8b892696a00a5912
Please reload this pagehttps://github.com/python/peps/pull/1140/commits/2a868983100932085f21f86fd725daddff925162
https://github.com/ncoghlan
ncoghlanhttps://github.com/python/peps/commits?author=ncoghlan
pep-0572.rsthttps://github.com/python/peps/pull/1140/commits/2a868983100932085f21f86fd725daddff925162#diff-387039b130e41e888dd5f6e0fd63aeb5739afe45c3236c79a39ebfd9855dcbef
View file https://github.com/ncoghlan/peps/blob/2a868983100932085f21f86fd725daddff925162/pep-0572.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/peps/pull/1140/commits/{{ revealButtonHref }}
https://github.com/python/peps/pull/1140/commits/2a868983100932085f21f86fd725daddff925162#diff-387039b130e41e888dd5f6e0fd63aeb5739afe45c3236c79a39ebfd9855dcbef
https://github.com/python/peps/pull/1140/commits/2a868983100932085f21f86fd725daddff925162#diff-387039b130e41e888dd5f6e0fd63aeb5739afe45c3236c79a39ebfd9855dcbef
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.