René's URL Explorer Experiment


Title: bpo-35224: PEP 572 Implementation by emilyemorehouse · Pull Request #10497 · python/cpython · GitHub

Open Graph Title: bpo-35224: PEP 572 Implementation by emilyemorehouse · Pull Request #10497 · python/cpython

X Title: bpo-35224: PEP 572 Implementation by emilyemorehouse · Pull Request #10497 · python/cpython

Description: This is the implementation of PEP 572. It has been few a couple of rounds of refactoring per my and Guido's review, but is now ready for a more thorough review from others. The only TODO items before merging are: News entry Thorough reviews Additional Notes The new test cases of note can be explicitly run using: ./python.exe -m test -v test_parser -v test_named_expressions ./python.exe -m test -v test_parser -v test_parser ./python.exe -m test -v test_parser -v test_tokenize Please note the following caveats and future tasks. These items are NOT blocking reviews or merging, but are here as FYIs if they come up in review: Must decide upon cleaner implementation of disallowing expressions such as ((a) := 10), or to continuing allowing this. The current, and know-to-be-imperfect, implementation was introduced here. This change has been reverted and deferred There are a few minor differences between how the implementation functions versus the spec in the PEP. See below for more information. Documentation updates will come in a separate PR Differences between the PEP spec and implementation From the "Scope of the target" section of the PEP, there are two cases that should raise a TargetScopeError: when an assignment expression is used in a comprehension inside a class body or for special cases in comprehensions. Invalid examples for the latter include: [i := i+1 for i in range(5)] [[(j := j) for i in range(5)] for j in range(5)] [i := 0 for i, j in stuff] [i+1 for i in i := stuff] However, the following work in the implementation,though the PEP states they should be invalid: >>> [i := i+1 for i in range(5)] [1, 2, 3, 4, 5] >>> i 5 >>> [i := 0 for i, j in [(1, 2)]] [0] The following does not work in the implementation (as desired), but does not throw a TargetScopeError as defined in the PEP: >>> [i+1 for i in i := range(5)] File "", line 1 [i+1 for i in i := range(5)] ^ SyntaxError: invalid syntax https://bugs.python.org/issue35224

Open Graph Description: This is the implementation of PEP 572. It has been few a couple of rounds of refactoring per my and Guido's review, but is now ready for a more thorough review from others. The only TODO items...

X Description: This is the implementation of PEP 572. It has been few a couple of rounds of refactoring per my and Guido's review, but is now ready for a more thorough review from others. The only TODO i...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:cbb9244f-d09a-30e7-4ab1-5faae6b593ea
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA31A:325DF6:2A50C2:398C5F:6A55193B
html-safe-noncea7b31c826e92b40da7ea04d95a98dcbb79f6ed2256b3dfb6e178b4ee913d239c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzFBOjMyNURGNjoyQTUwQzI6Mzk4QzVGOjZBNTUxOTNCIiwidmlzaXRvcl9pZCI6IjkwNTY1NDk0MjI4OTM0MzkyOTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5f902ff83ff4d5ec11b9f5703c0b50a18c7545bf646733b3e46ae1857e18c7b2
hovercard-subject-tagpull_request:230316556
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/10497/files
twitter:imagehttps://avatars.githubusercontent.com/u/4264897?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/4264897?s=400&v=4
og:image:altThis is the implementation of PEP 572. It has been few a couple of rounds of refactoring per my and Guido's review, but is now ready for a more thorough review from others. The only TODO items...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5
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
release3b6d37c6470adadff4194742daaab9a817cc4980
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/10497/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F10497%2Ffiles
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
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%2Fcpython%2Fpull%2F10497%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/10497/files
Reloadhttps://github.com/python/cpython/pull/10497/files
Reloadhttps://github.com/python/cpython/pull/10497/files
Please reload this pagehttps://github.com/python/cpython/pull/10497/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/10497/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k 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.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
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 and quality 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
emilyemorehousehttps://github.com/emilyemorehouse
python:masterhttps://github.com/python/cpython/tree/master
emilyemorehouse:pep572https://github.com/emilyemorehouse/cpython/tree/pep572
Conversation 59 https://github.com/python/cpython/pull/10497
Commits 67 https://github.com/python/cpython/pull/10497/commits
Checks 0 https://github.com/python/cpython/pull/10497/checks
Files changed https://github.com/python/cpython/pull/10497/files
Please reload this pagehttps://github.com/python/cpython/pull/10497/files
bpo-35224: PEP 572 Implementation https://github.com/python/cpython/pull/10497/files#top
Show all changes 67 commits https://github.com/python/cpython/pull/10497/files
11e9898 Add tokenization of := emilyemorehouse Jul 21, 2018 https://github.com/python/cpython/pull/10497/commits/11e98982461524e296b4a8bb3a60f4b7ef90161d
9e9156c Add initial usage of := in grammar. emilyemorehouse Jul 22, 2018 https://github.com/python/cpython/pull/10497/commits/9e9156c2256885466a6d3ed2a9f773d3ad38e7c7
6eb766d Update Python.asdl to match the grammar updates. Regenerated Include/… emilyemorehouse Jul 22, 2018 https://github.com/python/cpython/pull/10497/commits/6eb766d7a908543d9e9a36fb4e5fe6155c8b2f06
4f42586 Update AST and compiler files in Python/ast.c and Python/compile.c. B… emilyemorehouse Jul 22, 2018 https://github.com/python/cpython/pull/10497/commits/4f42586b696cdfda954a619b7370cfd7d4065736
e049ffa Regenerate Lib/symbol.py using `./python Lib/symbol.py` emilyemorehouse Jul 22, 2018 https://github.com/python/cpython/pull/10497/commits/e049ffaf806e647b2f2d2173aa456071cbf51218
0b6bd95 Tests - Fix failing tests in test_parser.py due to changes in token n… emilyemorehouse Jul 22, 2018 https://github.com/python/cpython/pull/10497/commits/0b6bd95811cca350ddd5c197868672625fc2f3ee
24e95fd Tests - Add simple test for := token emilyemorehouse Jul 23, 2018 https://github.com/python/cpython/pull/10497/commits/24e95fd3cb78ac633aaf549cc14489117fcb2332
d31135f Tests - Add simple tests for named expressions using expr and suite emilyemorehouse Jul 23, 2018 https://github.com/python/cpython/pull/10497/commits/d31135f78c47ef67e38b004d118cb1306e315150
e19a900 Tests - Update number of levels for nested expressions to prevent sta… emilyemorehouse Jul 23, 2018 https://github.com/python/cpython/pull/10497/commits/e19a900057a9162377ce89e8f322eae7d31bbbf5
aca4858 Update symbol table to handle NamedExpr emilyemorehouse Aug 10, 2018 https://github.com/python/cpython/pull/10497/commits/aca4858d36ed07a3f86a665a941ea4333bdeb572
2c7b01e Update Grammar to allow assignment expressions in if statements. emilyemorehouse Aug 10, 2018 https://github.com/python/cpython/pull/10497/commits/2c7b01e801e146ddcb4b0226adae2d5be597d22b
f0dad89 Tests - Add additional tests for named expressions in RoundtripLegalS… emilyemorehouse Aug 31, 2018 https://github.com/python/cpython/pull/10497/commits/f0dad890a7d832fab42793cf29fb64daee6180a1
fbea15f Tests - Add temporary syntax test failure tests in test_parser.py emilyemorehouse Sep 10, 2018 https://github.com/python/cpython/pull/10497/commits/fbea15fe2bae1e1f729cc370a8df95ea63bdea27
3cd271b Add support for allowing assignment expressions as function argument … emilyemorehouse Sep 10, 2018 https://github.com/python/cpython/pull/10497/commits/3cd271bc670f1f6949fbc09da2763c9c79b9db1e
7b34033 Tests - Move existing syntax tests out of test_parser.py and into tes… emilyemorehouse Sep 10, 2018 https://github.com/python/cpython/pull/10497/commits/7b34033ccd15e0cb924eb93e1007bc4091d18cb6
13671f7 Add TargetScopeError exception to extend SyntaxError emilyemorehouse Sep 11, 2018 https://github.com/python/cpython/pull/10497/commits/13671f7a041f99628ed4fdd4dbcd0b187905ad6a
5e4ba89 Tests - Update tests per PEP 572 emilyemorehouse Sep 11, 2018 https://github.com/python/cpython/pull/10497/commits/5e4ba891258cb0978ed22551097af950772c5c9f
c1c76ea Documentation - Small updates to XXX/todo comments emilyemorehouse Sep 11, 2018 https://github.com/python/cpython/pull/10497/commits/c1c76ea86d973eabd53347e8137ee37b938bda2c
0ebccb4 Fix assert in seq_for_testlist() emilyemorehouse Sep 11, 2018 https://github.com/python/cpython/pull/10497/commits/0ebccb4d4363967f92a342c45313dadbd71372a2
5500849 Cleanup - Denote "Not implemented -- No keyword args" on failing test… emilyemorehouse Sep 11, 2018 https://github.com/python/cpython/pull/10497/commits/5500849d5cfaa5ea2da6930cc3c24f6d890166cf
38dfaa2 Tests - Wrap all file opens in `with...as` to ensure files are closed emilyemorehouse Sep 11, 2018 https://github.com/python/cpython/pull/10497/commits/38dfaa2a25d6a6eeaaec1fdf64e108558ccecf91
3aaddc4 WIP: handle f(a := 1) emilyemorehouse Sep 11, 2018 https://github.com/python/cpython/pull/10497/commits/3aaddc478ce01a65ac2f55cd346ff87348f65e16
5d525a9 Tests and Cleanup - No longer skips keyword arg test. Keyword arg tes… emilyemorehouse Sep 11, 2018 https://github.com/python/cpython/pull/10497/commits/5d525a9ab56d0ff68a75d3f4f62dcaf94af1947d
32dc443 Tests - Refactor last remaining test case that relied on on external … emilyemorehouse Sep 11, 2018 https://github.com/python/cpython/pull/10497/commits/32dc443aaa780260aef088acf02e28c9782a5044
d806088 Tests - Add better description of remaning skipped tests. Add test ch… emilyemorehouse Sep 11, 2018 https://github.com/python/cpython/pull/10497/commits/d80608883f1f7de79d3d67656d47fe5ccb20d620
c1469bf Tests - Add test for nested comprehension, testing value and scope. F… emilyemorehouse Sep 11, 2018 https://github.com/python/cpython/pull/10497/commits/c1469bf5d1d6827bec73c615f3e8ee3b9e7d47df
e4e63ed Handle restriction of LHS for named expressions - can only assign to … emilyemorehouse Sep 12, 2018 https://github.com/python/cpython/pull/10497/commits/e4e63ed0ab20d62760a424d41c5e2d89a2c8fb8b
db936c7 Tests - Update negative test case for assigning to lambda to match ne… emilyemorehouse Sep 12, 2018 https://github.com/python/cpython/pull/10497/commits/db936c79aad2553f6dca5dc5b01e7e37cce4cab7
47e7367 Tests - Reorder test cases to group invalid syntax cases and named as… emilyemorehouse Sep 12, 2018 https://github.com/python/cpython/pull/10497/commits/47e73675f8051bc27cd7d014dbb85479cde5dc0e
787068e Tests - Update test case for named expression in function argument - … emilyemorehouse Sep 12, 2018 https://github.com/python/cpython/pull/10497/commits/787068e8b8dcc66676c0692f2fca773c778fcaf6
e21f5c8 Todo - Add todo for TargetScopeError based on Guido's comment (https:… emilyemorehouse Sep 12, 2018 https://github.com/python/cpython/pull/10497/commits/e21f5c88387a53d693a94395240e60a0ccbf7d0a
acd0f74 Tests - Add named expression tests for assignment operator in functio… emilyemorehouse Sep 12, 2018 https://github.com/python/cpython/pull/10497/commits/acd0f74ea16074c19e2527d1bc970a84b156e637
d0dd983 Add NamedStore to expr_context. Regenerate related code with `make re… emilyemorehouse Sep 13, 2018 https://github.com/python/cpython/pull/10497/commits/d0dd983148af30a0bb43b432fdb883ccf15511dd
9b136d9 Add usage of NamedStore to ast_for_named_expr in ast.c. Update occura… emilyemorehouse Sep 13, 2018 https://github.com/python/cpython/pull/10497/commits/9b136d987173b532b2419cdd875ddd01dd898d1c
8fc5c99 Add ste_comprehension to _symtable_entry to track if the namespace is… emilyemorehouse Sep 13, 2018 https://github.com/python/cpython/pull/10497/commits/8fc5c9962a6c434cbf7ac5afda5426da1ed4faf1
538dea4 s/symtable_add_def/symtable_add_def_helper. Add symtable_add_def to h… emilyemorehouse Sep 13, 2018 https://github.com/python/cpython/pull/10497/commits/538dea464440906ff0bf33ebe1c019674a3f33fc
ab34b0b Refactor symtable_record_directive to take lineno and col_offset as a… emilyemorehouse Sep 13, 2018 https://github.com/python/cpython/pull/10497/commits/ab34b0bbdc51cad9e86bd02b01a5cfc9fa298fe9
c04a08d Handle elevating scope for named expressions in comprehensions. emilyemorehouse Sep 14, 2018 https://github.com/python/cpython/pull/10497/commits/c04a08d72d28f9377da546a0e3d337c07c2ac5fd
f0297f8 Handle error for usage of named expression inside a class block emilyemorehouse Sep 14, 2018 https://github.com/python/cpython/pull/10497/commits/f0297f89b42f90ced5709f36b5c1068a73265ed2
ee6d789 Tests - No longer skip scope tests. Add additional scope tests emilyemorehouse Sep 14, 2018 https://github.com/python/cpython/pull/10497/commits/ee6d78967a5b419143a16975d1e5f6865eeeafdb
c37e3c1 Cleanup - Update error message for named expression within a comprehe… emilyemorehouse Sep 14, 2018 https://github.com/python/cpython/pull/10497/commits/c37e3c1967d4aa9747cd4355a40215186fbbab97
1db3fa9 Cleanup - Add missing case for NamedStore in expr_context_name. Remov… emilyemorehouse Sep 14, 2018 https://github.com/python/cpython/pull/10497/commits/1db3fa9452439d1fb770e14c97c800c8e7f7eb14
0e29038 Refactor - Consolidate set_context and set_namedexpr_context to reduc… emilyemorehouse Sep 14, 2018 https://github.com/python/cpython/pull/10497/commits/0e29038f7a6520b8f00fe6618c67754827b5cc10
2ff5744 Cleanup - Add additional use cases for ast_for_namedexpr in usage com… emilyemorehouse Sep 14, 2018 https://github.com/python/cpython/pull/10497/commits/2ff5744a9ee42698661e49c1d74c0c22401e0df2
2494008 Tests - Remove unnecessary test case. Renumber test case function names emilyemorehouse Sep 14, 2018 https://github.com/python/cpython/pull/10497/commits/2494008cba9080717575bf07beb395749e8d7d53
794a1d1 Remove TargetScopeError for now. Will add back if needed emilyemorehouse Sep 14, 2018 https://github.com/python/cpython/pull/10497/commits/794a1d11442250ad82f9b0daa7b07625cb289b7b
415d469 Cleanup - Small comment nit for consistency emilyemorehouse Sep 14, 2018 https://github.com/python/cpython/pull/10497/commits/415d469af1d1268ab13fc28a96054b39b70a8f85
162c8c4 Handle positional argument check with named expression emilyemorehouse Sep 14, 2018 https://github.com/python/cpython/pull/10497/commits/162c8c44021c67253b44b9bb8df4a7c62f582ec7
68e9e98 Add TargetScopeError exception definition. Add documentation for Targ… emilyemorehouse Sep 14, 2018 https://github.com/python/cpython/pull/10497/commits/68e9e98dadfc67deb70e4d598375aa50218f8016
1ad4b30 Increase stack size for parser by 200. This is a minimal change (appr… emilyemorehouse Sep 14, 2018 https://github.com/python/cpython/pull/10497/commits/1ad4b30966664386a190f76325cddc76fee0ea86
1b1d84d Add TargetScopeError to exception_hierarchy.txt for test_baseexceptio… emilyemorehouse Sep 14, 2018 https://github.com/python/cpython/pull/10497/commits/1b1d84dead47b1b47590a98c41bcefd875e13397
b80108b Tests - Major update for named expression tests, both in test_named_e… emilyemorehouse Sep 14, 2018 https://github.com/python/cpython/pull/10497/commits/b80108bd3d2c4fb8c81fcfcf218a98e73de9b04f
6e15f5f Cleanup - Remove unnecessary comment emilyemorehouse Sep 14, 2018 https://github.com/python/cpython/pull/10497/commits/6e15f5f6833eba10fd761b16f3f28b2ec491e95f
da11136 Cleanup - Comment nitpicks emilyemorehouse Sep 14, 2018 https://github.com/python/cpython/pull/10497/commits/da11136a33b6886009314f3b2ba6f745bcb19ec3
051ad8c Explicitly disallow assignment expressions to a name inside parenthes… emilyemorehouse Sep 15, 2018 https://github.com/python/cpython/pull/10497/commits/051ad8c998ed48d25d0b246181801a02d60e843d
f893035 Cleanup - Wrap lines more strictly in test file emilyemorehouse Sep 25, 2018 https://github.com/python/cpython/pull/10497/commits/f893035b71b51ea3f73817d70f0de6fbafcb45d1
16d7137 Revert "Explicitly disallow assignment expressions to a name inside p… emilyemorehouse Nov 13, 2018 https://github.com/python/cpython/pull/10497/commits/16d71370bc24bfe21cf817d44030043af8ef5b8e
070983b Add NEWS.d entry emilyemorehouse Nov 13, 2018 https://github.com/python/cpython/pull/10497/commits/070983b5aabebc92209898781b17c81e1c58f07f
5133800 Tests - Fix error in test_pickle.test_exceptions by adding TargetScop… emilyemorehouse Nov 13, 2018 https://github.com/python/cpython/pull/10497/commits/5133800eaf221c1b6f749f8ea5ac49ee01f1a0ba
bc2fed3 Tests - Update error message tests to reflect improved messaging conv… emilyemorehouse Nov 20, 2018 https://github.com/python/cpython/pull/10497/commits/bc2fed3a0f2efa8ae25b6c049677afae90543db1
f1cabf8 Remove cases that cannot be reached in compile.c. Small linting update. emilyemorehouse Nov 27, 2018 https://github.com/python/cpython/pull/10497/commits/f1cabf8657fea5652ff51d05e6dc5bbe2747bfa7
0e0ca07 Update Grammar/Tokens to add COLONEQUAL. Regenerate all files emilyemorehouse Jan 22, 2019 https://github.com/python/cpython/pull/10497/commits/0e0ca07b4d1623f6f9f931dc86961489025daf7d
1153aae Update TargetScopeError PRE_INIT and POST_INIT, as this was purposefu… emilyemorehouse Jan 24, 2019 https://github.com/python/cpython/pull/10497/commits/1153aae9549496f5ef55c8a06bd8e07521b26618
7775b0d Add NamedStore back and regenerate files emilyemorehouse Jan 24, 2019 https://github.com/python/cpython/pull/10497/commits/7775b0dec55271ed9214503c9b40b64c300c270d
10a71f8 Pass along line number and end col info for named expression emilyemorehouse Jan 24, 2019 https://github.com/python/cpython/pull/10497/commits/10a71f81d28e2f7b3581552c061adb1b93462eba
2b9a7bc Simplify News entry emilyemorehouse Jan 24, 2019 https://github.com/python/cpython/pull/10497/commits/2b9a7bc1a5cb2ea69723fa5d2f2aee3181fcf500
a63bf06 Fix compiler warning and explicity mark fallthrough emilyemorehouse Jan 24, 2019 https://github.com/python/cpython/pull/10497/commits/a63bf06eb78e85b58e9ecde224bbcf438f5b0f7e
Clear filters https://github.com/python/cpython/pull/10497/files
Please reload this pagehttps://github.com/python/cpython/pull/10497/files
Please reload this pagehttps://github.com/python/cpython/pull/10497/files
exceptions.rst https://github.com/python/cpython/pull/10497/files#diff-72a55970b70280a1355dd73f4faffc95c8167e778dd8682b342a8ff9c092749a
token-list.inc https://github.com/python/cpython/pull/10497/files#diff-1ed1baa64fb81295770e7259a1d94c9497351df7520e00889e2a93731e86fe36
Grammar https://github.com/python/cpython/pull/10497/files#diff-02ea99ab273a0f05cf376d8135d80c0af09bb11b0e63a39bcdf92ccc85d7a912
Tokens https://github.com/python/cpython/pull/10497/files#diff-2a809e5c78114321e9ec0ba78c76d2ecba41f54e4c072935c81c8169aff39c5b
Python-ast.h https://github.com/python/cpython/pull/10497/files#diff-aa47c9a4ecdd799c2932afef25673bf9c33ec9ef75f1bc6054b924bea602c747
graminit.h https://github.com/python/cpython/pull/10497/files#diff-9ce4da27ecaef70853adb67e95949cbd22af65ba115f7be0611d60c9b5aaace8
pyerrors.h https://github.com/python/cpython/pull/10497/files#diff-f4e5b9de4e18de8d6f51895b1c99ccfcbee733b25d9027a7e5f74985f3e920db
symtable.h https://github.com/python/cpython/pull/10497/files#diff-78b6d47804f67fe47ac9f108077cf57c0c9491e92ff18e64cafcb81da73cea6a
token.h https://github.com/python/cpython/pull/10497/files#diff-cec6ca68824b602026d6ca5d4fe48a3beabd534fd6bef3c016a135683b375517
_compat_pickle.py https://github.com/python/cpython/pull/10497/files#diff-3b5040f0205f9181a821ff7afca1bbf2ac8d43c2b22c0cd6f5857ad8806a8f79
symbol.py https://github.com/python/cpython/pull/10497/files#diff-129aed89283e8e00d8c548279eb04c2f2dd3dec9e6ee3405d389388f3a812f54
exception_hierarchy.txt https://github.com/python/cpython/pull/10497/files#diff-a6efa445d967903c8fb4866aea8fe34f5e13d041b230cc862aaaab2294ff9db0
test_named_expressions.py https://github.com/python/cpython/pull/10497/files#diff-4a4a4c48508e5753e128a68e37d611bf80f7847375cfa8445eb32e44f96f604b
test_parser.py https://github.com/python/cpython/pull/10497/files#diff-d93e7572b76bff572320c40b6906d4be533871949bb93d66a528ab625a34da3e
test_tokenize.py https://github.com/python/cpython/pull/10497/files#diff-b07c4f10c75a22e102f114227a0a9b7b763ddda7a330109994e69b29540ea9bb
token.py https://github.com/python/cpython/pull/10497/files#diff-4a711e782c0052faff4c5ffa0df266200f81ddb87687c9b7d92af70233d43dd6
2018-11-13-14-26-54.bpo-35224.F0B6UQ.rst https://github.com/python/cpython/pull/10497/files#diff-24ca24b7d4f962fc0ab96263c8dabaae555bcf3b714e6e41d43156f9f895b174
exceptions.c https://github.com/python/cpython/pull/10497/files#diff-96c4ad902cdfac48712fef8fff0d0c78a71eb135fb48264f3ebb67db1013fc94
python3.def https://github.com/python/cpython/pull/10497/files#diff-a047a3ba52889584c613807fad7e2aa6797b2694868f756dd5bc05667f013497
Python.asdl https://github.com/python/cpython/pull/10497/files#diff-56cfb21eb86b07bb94e916eb74143c7d6c2ac6f2494216c0e2507fd080c34aed
parser.h https://github.com/python/cpython/pull/10497/files#diff-6622a6bd6464924e24424528f02317003e36f0874fbbcae4c3a74898d74abffa
token.c https://github.com/python/cpython/pull/10497/files#diff-62d6ae4a2b687e27352e989df2b323cee846a5f6d00a28e9705ba410ced1200c
Python-ast.c https://github.com/python/cpython/pull/10497/files#diff-0258ad568d1bc0a5fa1c949351df0cc72a0a63441a1ed78c77d59f5695704857
ast.c https://github.com/python/cpython/pull/10497/files#diff-63309d32b22eaebd869b7ac0d2d4d02f95bd7ff5de2ba042d07c8e6962af8bbc
compile.c https://github.com/python/cpython/pull/10497/files#diff-ebc983d9f91e5bcf73500e377ac65e85863c4f77fd5b6b6caf4fcdf7c0f0b057
graminit.c https://github.com/python/cpython/pull/10497/files#diff-76c70199128010fef86abc1362c6b8ffb7da28407819c06d1a6fba0061ffb114
symtable.c https://github.com/python/cpython/pull/10497/files#diff-1029343b7709f438c869082355577469b5aa784b454afa461ca2844ce9910ea6
Doc/c-api/exceptions.rsthttps://github.com/python/cpython/pull/10497/files#diff-72a55970b70280a1355dd73f4faffc95c8167e778dd8682b342a8ff9c092749a
View file https://github.com/emilyemorehouse/cpython/blob/a63bf06eb78e85b58e9ecde224bbcf438f5b0f7e/Doc/c-api/exceptions.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/10497/{{ revealButtonHref }}
https://github.com/python/cpython/pull/10497/files#diff-72a55970b70280a1355dd73f4faffc95c8167e778dd8682b342a8ff9c092749a
https://github.com/python/cpython/pull/10497/files#diff-72a55970b70280a1355dd73f4faffc95c8167e778dd8682b342a8ff9c092749a
https://github.com/python/cpython/pull/10497/files#diff-72a55970b70280a1355dd73f4faffc95c8167e778dd8682b342a8ff9c092749a
https://github.com/python/cpython/pull/10497/files#diff-72a55970b70280a1355dd73f4faffc95c8167e778dd8682b342a8ff9c092749a
Doc/library/token-list.inchttps://github.com/python/cpython/pull/10497/files#diff-1ed1baa64fb81295770e7259a1d94c9497351df7520e00889e2a93731e86fe36
View file https://github.com/emilyemorehouse/cpython/blob/a63bf06eb78e85b58e9ecde224bbcf438f5b0f7e/Doc/library/token-list.inc
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/10497/files
Grammar/Grammarhttps://github.com/python/cpython/pull/10497/files#diff-02ea99ab273a0f05cf376d8135d80c0af09bb11b0e63a39bcdf92ccc85d7a912
View file https://github.com/emilyemorehouse/cpython/blob/a63bf06eb78e85b58e9ecde224bbcf438f5b0f7e/Grammar/Grammar
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/10497/{{ revealButtonHref }}
https://github.com/python/cpython/pull/10497/files#diff-02ea99ab273a0f05cf376d8135d80c0af09bb11b0e63a39bcdf92ccc85d7a912
https://github.com/python/cpython/pull/10497/files#diff-02ea99ab273a0f05cf376d8135d80c0af09bb11b0e63a39bcdf92ccc85d7a912
https://github.com/python/cpython/pull/10497/files#diff-02ea99ab273a0f05cf376d8135d80c0af09bb11b0e63a39bcdf92ccc85d7a912
serhiy-storchakahttps://github.com/serhiy-storchaka
Nov 20, 2018https://github.com/python/cpython/pull/10497/files#r235141572
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/10497/files
https://github.com/python/cpython/pull/10497/files#diff-02ea99ab273a0f05cf376d8135d80c0af09bb11b0e63a39bcdf92ccc85d7a912
serhiy-storchakahttps://github.com/serhiy-storchaka
Nov 20, 2018https://github.com/python/cpython/pull/10497/files#r235144188
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/10497/files
https://github.com/python/cpython/pull/10497/files#diff-02ea99ab273a0f05cf376d8135d80c0af09bb11b0e63a39bcdf92ccc85d7a912
Grammar/Tokenshttps://github.com/python/cpython/pull/10497/files#diff-2a809e5c78114321e9ec0ba78c76d2ecba41f54e4c072935c81c8169aff39c5b
View file https://github.com/emilyemorehouse/cpython/blob/a63bf06eb78e85b58e9ecde224bbcf438f5b0f7e/Grammar/Tokens
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/10497/{{ revealButtonHref }}
https://github.com/python/cpython/pull/10497/files#diff-2a809e5c78114321e9ec0ba78c76d2ecba41f54e4c072935c81c8169aff39c5b
https://github.com/python/cpython/pull/10497/files#diff-2a809e5c78114321e9ec0ba78c76d2ecba41f54e4c072935c81c8169aff39c5b
Include/Python-ast.hhttps://github.com/python/cpython/pull/10497/files#diff-aa47c9a4ecdd799c2932afef25673bf9c33ec9ef75f1bc6054b924bea602c747
View file https://github.com/emilyemorehouse/cpython/blob/a63bf06eb78e85b58e9ecde224bbcf438f5b0f7e/Include/Python-ast.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/10497/files
Include/graminit.hhttps://github.com/python/cpython/pull/10497/files#diff-9ce4da27ecaef70853adb67e95949cbd22af65ba115f7be0611d60c9b5aaace8
View file https://github.com/emilyemorehouse/cpython/blob/a63bf06eb78e85b58e9ecde224bbcf438f5b0f7e/Include/graminit.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/10497/files
Include/pyerrors.hhttps://github.com/python/cpython/pull/10497/files#diff-f4e5b9de4e18de8d6f51895b1c99ccfcbee733b25d9027a7e5f74985f3e920db
View file https://github.com/emilyemorehouse/cpython/blob/a63bf06eb78e85b58e9ecde224bbcf438f5b0f7e/Include/pyerrors.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/10497/{{ revealButtonHref }}
https://github.com/python/cpython/pull/10497/files#diff-f4e5b9de4e18de8d6f51895b1c99ccfcbee733b25d9027a7e5f74985f3e920db
https://github.com/python/cpython/pull/10497/files#diff-f4e5b9de4e18de8d6f51895b1c99ccfcbee733b25d9027a7e5f74985f3e920db
Include/symtable.hhttps://github.com/python/cpython/pull/10497/files#diff-78b6d47804f67fe47ac9f108077cf57c0c9491e92ff18e64cafcb81da73cea6a
View file https://github.com/emilyemorehouse/cpython/blob/a63bf06eb78e85b58e9ecde224bbcf438f5b0f7e/Include/symtable.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/10497/{{ revealButtonHref }}
https://github.com/python/cpython/pull/10497/files#diff-78b6d47804f67fe47ac9f108077cf57c0c9491e92ff18e64cafcb81da73cea6a
https://github.com/python/cpython/pull/10497/files#diff-78b6d47804f67fe47ac9f108077cf57c0c9491e92ff18e64cafcb81da73cea6a
Include/token.hhttps://github.com/python/cpython/pull/10497/files#diff-cec6ca68824b602026d6ca5d4fe48a3beabd534fd6bef3c016a135683b375517
View file https://github.com/emilyemorehouse/cpython/blob/a63bf06eb78e85b58e9ecde224bbcf438f5b0f7e/Include/token.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/10497/files
Lib/_compat_pickle.pyhttps://github.com/python/cpython/pull/10497/files#diff-3b5040f0205f9181a821ff7afca1bbf2ac8d43c2b22c0cd6f5857ad8806a8f79
View file https://github.com/emilyemorehouse/cpython/blob/a63bf06eb78e85b58e9ecde224bbcf438f5b0f7e/Lib/_compat_pickle.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/10497/{{ revealButtonHref }}
https://github.com/python/cpython/pull/10497/files#diff-3b5040f0205f9181a821ff7afca1bbf2ac8d43c2b22c0cd6f5857ad8806a8f79
https://github.com/python/cpython/pull/10497/files#diff-3b5040f0205f9181a821ff7afca1bbf2ac8d43c2b22c0cd6f5857ad8806a8f79
Lib/symbol.pyhttps://github.com/python/cpython/pull/10497/files#diff-129aed89283e8e00d8c548279eb04c2f2dd3dec9e6ee3405d389388f3a812f54
View file https://github.com/emilyemorehouse/cpython/blob/a63bf06eb78e85b58e9ecde224bbcf438f5b0f7e/Lib/symbol.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/10497/{{ revealButtonHref }}
https://github.com/python/cpython/pull/10497/files#diff-129aed89283e8e00d8c548279eb04c2f2dd3dec9e6ee3405d389388f3a812f54
https://github.com/python/cpython/pull/10497/files#diff-129aed89283e8e00d8c548279eb04c2f2dd3dec9e6ee3405d389388f3a812f54
Lib/test/exception_hierarchy.txthttps://github.com/python/cpython/pull/10497/files#diff-a6efa445d967903c8fb4866aea8fe34f5e13d041b230cc862aaaab2294ff9db0
View file https://github.com/emilyemorehouse/cpython/blob/a63bf06eb78e85b58e9ecde224bbcf438f5b0f7e/Lib/test/exception_hierarchy.txt
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/10497/{{ revealButtonHref }}
https://github.com/python/cpython/pull/10497/files#diff-a6efa445d967903c8fb4866aea8fe34f5e13d041b230cc862aaaab2294ff9db0
https://github.com/python/cpython/pull/10497/files#diff-a6efa445d967903c8fb4866aea8fe34f5e13d041b230cc862aaaab2294ff9db0
Please reload this pagehttps://github.com/python/cpython/pull/10497/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.