René's URL Explorer Experiment


Title: bpo-40334: Produce better error messages on invalid targets by lysnikolaou · Pull Request #20106 · python/cpython · GitHub

Open Graph Title: bpo-40334: Produce better error messages on invalid targets by lysnikolaou · Pull Request #20106 · python/cpython

X Title: bpo-40334: Produce better error messages on invalid targets by lysnikolaou · Pull Request #20106 · python/cpython

Description: The following error messages get produced: cannot delete ... for invalid del targets cannot assign to ... for invalid targets in for and with statements Additionally a few cuts were added in various places before the invocation of the invalid_* rule, in order to speed things up. https://bugs.python.org/issue40334

Open Graph Description: The following error messages get produced: cannot delete ... for invalid del targets cannot assign to ... for invalid targets in for and with statements Additionally a few cuts were added in vari...

X Description: The following error messages get produced: cannot delete ... for invalid del targets cannot assign to ... for invalid targets in for and with statements Additionally a few cuts were added in vari...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:32907de7-2980-80c3-9ec2-d400b20fe7c8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAEFE:29E881:355196:4A1EDF:696A44DB
html-safe-nonce2fdf01a88e883d36ef93f077cdfd537f3479873f313f84dfbd141eb78b68a763
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUZFOjI5RTg4MTozNTUxOTY6NEExRURGOjY5NkE0NERCIiwidmlzaXRvcl9pZCI6IjM3ODc1NDE0NzAzNjkxNzA2NTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac02b0819b6ad809c7e793faae6b5d98d7c3473f97e3961718b8369e0a63da6846
hovercard-subject-tagpull_request:418580480
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/20106/files
twitter:imagehttps://avatars.githubusercontent.com/u/20306270?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/20306270?s=400&v=4
og:image:altThe following error messages get produced: cannot delete ... for invalid del targets cannot assign to ... for invalid targets in for and with statements Additionally a few cuts were added in vari...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef
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
release63c426b30d262aba269ef14c40e3c817b384cd61
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/20106/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F20106%2Ffiles
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%2F20106%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/20106/files
Reloadhttps://github.com/python/cpython/pull/20106/files
Reloadhttps://github.com/python/cpython/pull/20106/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/20106/files
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/20106/files
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
pablogsalhttps://github.com/pablogsal
python:masterhttps://github.com/python/cpython/tree/master
lysnikolaou:targets-errorshttps://github.com/lysnikolaou/cpython/tree/targets-errors
Conversation 42 https://github.com/python/cpython/pull/20106
Commits 24 https://github.com/python/cpython/pull/20106/commits
Checks 0 https://github.com/python/cpython/pull/20106/checks
Files changed https://github.com/python/cpython/pull/20106/files
Please reload this pagehttps://github.com/python/cpython/pull/20106/files
bpo-40334: Produce better error messages on invalid targets https://github.com/python/cpython/pull/20106/files#top
Show all changes 24 commits https://github.com/python/cpython/pull/20106/files
0dfaa22 bpo-40334: Produce better error messages on invalid targets lysnikolaou May 15, 2020 https://github.com/python/cpython/pull/20106/commits/0dfaa2252cfa9794bebd8bb5c48aadf783795a73
d4a9dd6 Fix test_exceptions lysnikolaou May 15, 2020 https://github.com/python/cpython/pull/20106/commits/d4a9dd681fe5f298807734667cc490d5007debff
72a1339 📜🤖 Added by blurb_it. blurb-it[bot] May 15, 2020 https://github.com/python/cpython/pull/20106/commits/72a133922009f2f79a9c7f8e4543a452ec1d9d1d
1b6cf0b Produce the same error messages with the old parser for with and for … lysnikolaou May 15, 2020 https://github.com/python/cpython/pull/20106/commits/1b6cf0b327f024dc53ab548bbfb2bca55064c31c
1ad3819 Add invalid_group rule lysnikolaou May 15, 2020 https://github.com/python/cpython/pull/20106/commits/1ad3819b21c8b29a1203eb11332b293bb2467067
6f30315 Update Grammar/python.gram lysnikolaou May 16, 2020 https://github.com/python/cpython/pull/20106/commits/6f30315741e04ad672e126fcd6366a6e81f4d2df
f750aba Update Parser/pegen/pegen.c lysnikolaou May 16, 2020 https://github.com/python/cpython/pull/20106/commits/f750aba1aee1a32c7000e7bac761dbbc468a5750
132178f Address Guido's feedback lysnikolaou May 16, 2020 https://github.com/python/cpython/pull/20106/commits/132178ffe1308ddc78431e529863a91d7da7058e
17cc4bc Inline _PyPegen_get_invalid_for_target lysnikolaou May 17, 2020 https://github.com/python/cpython/pull/20106/commits/17cc4bcd2827897b6408cd7613a1fb3898bda6a2
def0f3d Revert inlining lysnikolaou May 17, 2020 https://github.com/python/cpython/pull/20106/commits/def0f3d7aee446785d773aac566921464d76b9e4
ee3524b Merge remote-tracking branch 'upstream/master' into targets-errors pablogsal May 17, 2020 https://github.com/python/cpython/pull/20106/commits/ee3524b5bbf8efbb21ce767bb70e5447f5b39fab
4959a12 Fix searching for invalid for targets, by visiting Compare nodes in _… lysnikolaou May 17, 2020 https://github.com/python/cpython/pull/20106/commits/4959a12d71c95f23451c18c8ce235a96e203729d
dd1d8c8 Call RAISE_SYNTAX_ERROR instead of returning NULL, when no invalid fo… lysnikolaou May 17, 2020 https://github.com/python/cpython/pull/20106/commits/dd1d8c82d318e5d98978324c49fcbfb85cbcf0c2
24d63fb Merge branch 'master' into targets-errors lysnikolaou May 18, 2020 https://github.com/python/cpython/pull/20106/commits/24d63fb4148a0b30298d032f208aba44ee65aada
c1cf8e6 Replace is_del and is_for args with an enum lysnikolaou May 18, 2020 https://github.com/python/cpython/pull/20106/commits/c1cf8e63562999fe2ad8fac6a327e04c49f17aef
06798ff Only return an invalid target, when the comparison is an In comparison lysnikolaou May 20, 2020 https://github.com/python/cpython/pull/20106/commits/06798ff0df60a912781be56a008b390409db9724
ef7fe3a Fix bug lysnikolaou May 20, 2020 https://github.com/python/cpython/pull/20106/commits/ef7fe3afb4d922e02e87d9a41e8e1d4d76815a35
efabcc9 Merge branch 'master' into targets-errors lysnikolaou May 23, 2020 https://github.com/python/cpython/pull/20106/commits/efabcc9164954067406e23b9be4708f3a828ee4a
6d41c55 Merge branch 'master' into targets-errors lysnikolaou May 26, 2020 https://github.com/python/cpython/pull/20106/commits/6d41c5582d3dfca82de1008ab67e3982c821a4b7
82486c1 Minor refactoring lysnikolaou May 26, 2020 https://github.com/python/cpython/pull/20106/commits/82486c1ca9618075ea0dfa65e034fb09997590c1
705d55b Merge branch 'master' into targets-errors lysnikolaou Jun 10, 2020 https://github.com/python/cpython/pull/20106/commits/705d55b98453792138a9748fa1da763dfcfc7656
f0f934d Merge branch 'master' into targets-errors lysnikolaou Jun 10, 2020 https://github.com/python/cpython/pull/20106/commits/f0f934dc1a47166bd2b6810a2bb0db0d0d70bfda
ede107e Merge branch 'master' into targets-errors lysnikolaou Jun 18, 2020 https://github.com/python/cpython/pull/20106/commits/ede107e1faa4a75fae477af10074931c061cff11
55b5327 Add CHECK* checks to GET_INVALID_*TARGET macros lysnikolaou Jun 18, 2020 https://github.com/python/cpython/pull/20106/commits/55b53270bf73e45d2ef1cf6fac8e652e137e2a9b
Clear filters https://github.com/python/cpython/pull/20106/files
Please reload this pagehttps://github.com/python/cpython/pull/20106/files
Please reload this pagehttps://github.com/python/cpython/pull/20106/files
python.gram https://github.com/python/cpython/pull/20106/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
test_exceptions.py https://github.com/python/cpython/pull/20106/files#diff-3dbd58a46964dc5908595a1caa552fa3f5e2e46610679634ffc1064fd7cc3c8f
test_syntax.py https://github.com/python/cpython/pull/20106/files#diff-985c9f5237c42a342864f5cbdb35dc56bc0017f44d5dfa561ecbef72e4a7ad4f
parser.c https://github.com/python/cpython/pull/20106/files#diff-6d39440cedc67d1ce7a0586bfb6ecb8483803448a9c93f3fae3ad0e2260e29f7
pegen.c https://github.com/python/cpython/pull/20106/files#diff-ec9a9d08c5b1d518997db0f5b4795c528a41efc35507d6c2a384eee43f047cb7
pegen.h https://github.com/python/cpython/pull/20106/files#diff-5803bf7cd8fdced0a7448e74074f36018f2206ab77ad13dc7451b1948b950852
Grammar/python.gramhttps://github.com/python/cpython/pull/20106/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
View file https://github.com/lysnikolaou/cpython/blob/55b53270bf73e45d2ef1cf6fac8e652e137e2a9b/Grammar/python.gram
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/20106/{{ revealButtonHref }}
https://github.com/python/cpython/pull/20106/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
https://github.com/python/cpython/pull/20106/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
https://github.com/python/cpython/pull/20106/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
https://github.com/python/cpython/pull/20106/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
https://github.com/python/cpython/pull/20106/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
https://github.com/python/cpython/pull/20106/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
https://github.com/python/cpython/pull/20106/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
https://github.com/python/cpython/pull/20106/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
https://github.com/python/cpython/pull/20106/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
https://github.com/python/cpython/pull/20106/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
https://github.com/python/cpython/pull/20106/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
https://github.com/python/cpython/pull/20106/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
https://github.com/python/cpython/pull/20106/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
Please reload this pagehttps://github.com/python/cpython/pull/20106/files
https://github.com/python/cpython/pull/20106/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
https://github.com/python/cpython/pull/20106/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
https://github.com/python/cpython/pull/20106/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
Lib/test/test_exceptions.pyhttps://github.com/python/cpython/pull/20106/files#diff-3dbd58a46964dc5908595a1caa552fa3f5e2e46610679634ffc1064fd7cc3c8f
View file https://github.com/lysnikolaou/cpython/blob/55b53270bf73e45d2ef1cf6fac8e652e137e2a9b/Lib/test/test_exceptions.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/20106/{{ revealButtonHref }}
https://github.com/python/cpython/pull/20106/files#diff-3dbd58a46964dc5908595a1caa552fa3f5e2e46610679634ffc1064fd7cc3c8f
https://github.com/python/cpython/pull/20106/files#diff-3dbd58a46964dc5908595a1caa552fa3f5e2e46610679634ffc1064fd7cc3c8f
Lib/test/test_syntax.pyhttps://github.com/python/cpython/pull/20106/files#diff-985c9f5237c42a342864f5cbdb35dc56bc0017f44d5dfa561ecbef72e4a7ad4f
View file https://github.com/lysnikolaou/cpython/blob/55b53270bf73e45d2ef1cf6fac8e652e137e2a9b/Lib/test/test_syntax.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/20106/{{ revealButtonHref }}
https://github.com/python/cpython/pull/20106/files#diff-985c9f5237c42a342864f5cbdb35dc56bc0017f44d5dfa561ecbef72e4a7ad4f
https://github.com/python/cpython/pull/20106/files#diff-985c9f5237c42a342864f5cbdb35dc56bc0017f44d5dfa561ecbef72e4a7ad4f
https://github.com/python/cpython/pull/20106/files#diff-985c9f5237c42a342864f5cbdb35dc56bc0017f44d5dfa561ecbef72e4a7ad4f
https://github.com/python/cpython/pull/20106/files#diff-985c9f5237c42a342864f5cbdb35dc56bc0017f44d5dfa561ecbef72e4a7ad4f
Please reload this pagehttps://github.com/python/cpython/pull/20106/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.