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
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/commits/:range(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:8e091209-8867-3c97-5194-4eb47a4140f0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C92A:2E4036:213440E:2CE4A90:6A655875 |
| html-safe-nonce | 8144e0d5c4e2ea76475c2052c907a518f68c1db6c4bb0904d628e40ecefe5d67 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTJBOjJFNDAzNjoyMTM0NDBFOjJDRTRBOTA6NkE2NTU4NzUiLCJ2aXNpdG9yX2lkIjoiMjI4NDM0NzgyMDY2ODcwNDg4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 628315a76bdd2747edda4ae99844124c0f6012474fd761b86826694cf3a7a9a3 |
| hovercard-subject-tag | pull_request:304174725 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/peps/pull/1140/commits/2a868983100932085f21f86fd725daddff925162 |
| twitter:image | https://avatars.githubusercontent.com/u/1026649?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1026649?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/peps git https://github.com/python/peps.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 13414105 |
| octolytics-dimension-repository_nwo | python/peps |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13414105 |
| octolytics-dimension-repository_network_root_nwo | python/peps |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 309153364422b3c499922d1a2a6404910a58ed8e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width