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: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

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/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:da5fba0c-1b91-ad7d-bc43-a69ba5be5676
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE8B4:25F3E7:8639AE:B95881:6A53912A
html-safe-nonce7c336c18f41033ed1114992e9df6d4f5394cee2bb399eff98da19a3841f63695
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEI0OjI1RjNFNzo4NjM5QUU6Qjk1ODgxOjZBNTM5MTJBIiwidmlzaXRvcl9pZCI6IjYxMDEwMDc1OTAxNTY5MDUzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7110b8874e902902398085a59488e390d68454bca68cc4300bc34ddac425949b
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/10497/commits
twitter:imagehttps://opengraph.githubassets.com/4c545c30c7c1519e3abe33adb53a12a78001819cb188866c62ddb29a7192b47a/python/cpython/pull/10497
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4c545c30c7c1519e3abe33adb53a12a78001819cb188866c62ddb29a7192b47a/python/cpython/pull/10497
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:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameemilyemorehouse
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-cache
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
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/10497/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F10497%2Fcommits
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%2Fcommits
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%2Fcpython
Reloadhttps://github.com/python/cpython/pull/10497/commits
Reloadhttps://github.com/python/cpython/pull/10497/commits
Reloadhttps://github.com/python/cpython/pull/10497/commits
Please reload this pagehttps://github.com/python/cpython/pull/10497/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/10497/commits
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
emilyemorehousehttps://github.com/emilyemorehouse
python:masterhttps://github.com/python/cpython/tree/master
emilyemorehouse:pep572https://github.com/emilyemorehouse/cpython/tree/pep572
Conversationhttps://github.com/python/cpython/pull/10497
Commits67 (67)https://github.com/python/cpython/pull/10497/commits
Checkshttps://github.com/python/cpython/pull/10497/checks
Files changedhttps://github.com/python/cpython/pull/10497/files
bpo-35224: PEP 572 Implementationhttps://github.com/python/cpython/pull/10497/commits#top
emilyemorehousehttps://github.com/emilyemorehouse
python:masterhttps://github.com/python/cpython/tree/master
emilyemorehouse:pep572https://github.com/emilyemorehouse/cpython/tree/pep572
Add tokenization of :=https://github.com/python/cpython/pull/10497/commits/11e98982461524e296b4a8bb3a60f4b7ef90161d
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
11e9898https://github.com/python/cpython/pull/10497/commits/11e98982461524e296b4a8bb3a60f4b7ef90161d
https://github.com/python/cpython/tree/11e98982461524e296b4a8bb3a60f4b7ef90161d
Add initial usage of := in grammar.https://github.com/python/cpython/pull/10497/commits/9e9156c2256885466a6d3ed2a9f773d3ad38e7c7
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
9e9156chttps://github.com/python/cpython/pull/10497/commits/9e9156c2256885466a6d3ed2a9f773d3ad38e7c7
https://github.com/python/cpython/tree/9e9156c2256885466a6d3ed2a9f773d3ad38e7c7
Update Python.asdl to match the grammar updates. Regenerated Include/Python-ast.h and Python/Python-ast.chttps://github.com/python/cpython/pull/10497/commits/6eb766d7a908543d9e9a36fb4e5fe6155c8b2f06
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
6eb766dhttps://github.com/python/cpython/pull/10497/commits/6eb766d7a908543d9e9a36fb4e5fe6155c8b2f06
https://github.com/python/cpython/tree/6eb766d7a908543d9e9a36fb4e5fe6155c8b2f06
Update AST and compiler files in Python/ast.c and Python/compile.c. Basic functionality, this isn't scoped properlyhttps://github.com/python/cpython/pull/10497/commits/4f42586b696cdfda954a619b7370cfd7d4065736
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
4f42586https://github.com/python/cpython/pull/10497/commits/4f42586b696cdfda954a619b7370cfd7d4065736
https://github.com/python/cpython/tree/4f42586b696cdfda954a619b7370cfd7d4065736
Regenerate Lib/symbol.py using `./python Lib/symbol.py`https://github.com/python/cpython/pull/10497/commits/e049ffaf806e647b2f2d2173aa456071cbf51218
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
e049ffahttps://github.com/python/cpython/pull/10497/commits/e049ffaf806e647b2f2d2173aa456071cbf51218
https://github.com/python/cpython/tree/e049ffaf806e647b2f2d2173aa456071cbf51218
Tests - Fix failing tests in test_parser.py due to changes in token numbers for internal representationhttps://github.com/python/cpython/pull/10497/commits/0b6bd95811cca350ddd5c197868672625fc2f3ee
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
0b6bd95https://github.com/python/cpython/pull/10497/commits/0b6bd95811cca350ddd5c197868672625fc2f3ee
https://github.com/python/cpython/tree/0b6bd95811cca350ddd5c197868672625fc2f3ee
Tests - Add simple test for := tokenhttps://github.com/python/cpython/pull/10497/commits/24e95fd3cb78ac633aaf549cc14489117fcb2332
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
24e95fdhttps://github.com/python/cpython/pull/10497/commits/24e95fd3cb78ac633aaf549cc14489117fcb2332
https://github.com/python/cpython/tree/24e95fd3cb78ac633aaf549cc14489117fcb2332
Tests - Add simple tests for named expressions using expr and suitehttps://github.com/python/cpython/pull/10497/commits/d31135f78c47ef67e38b004d118cb1306e315150
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
d31135fhttps://github.com/python/cpython/pull/10497/commits/d31135f78c47ef67e38b004d118cb1306e315150
https://github.com/python/cpython/tree/d31135f78c47ef67e38b004d118cb1306e315150
Tests - Update number of levels for nested expressions to prevent stack overflowhttps://github.com/python/cpython/pull/10497/commits/e19a900057a9162377ce89e8f322eae7d31bbbf5
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
e19a900https://github.com/python/cpython/pull/10497/commits/e19a900057a9162377ce89e8f322eae7d31bbbf5
https://github.com/python/cpython/tree/e19a900057a9162377ce89e8f322eae7d31bbbf5
Update symbol table to handle NamedExprhttps://github.com/python/cpython/pull/10497/commits/aca4858d36ed07a3f86a665a941ea4333bdeb572
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
aca4858https://github.com/python/cpython/pull/10497/commits/aca4858d36ed07a3f86a665a941ea4333bdeb572
https://github.com/python/cpython/tree/aca4858d36ed07a3f86a665a941ea4333bdeb572
Update Grammar to allow assignment expressions in if statements.https://github.com/python/cpython/pull/10497/commits/2c7b01e801e146ddcb4b0226adae2d5be597d22b
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
2c7b01ehttps://github.com/python/cpython/pull/10497/commits/2c7b01e801e146ddcb4b0226adae2d5be597d22b
https://github.com/python/cpython/tree/2c7b01e801e146ddcb4b0226adae2d5be597d22b
Tests - Add additional tests for named expressions in RoundtripLegalSyntaxTestCase, based on examples and information directly from PEP 572https://github.com/python/cpython/pull/10497/commits/f0dad890a7d832fab42793cf29fb64daee6180a1
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
f0dad89https://github.com/python/cpython/pull/10497/commits/f0dad890a7d832fab42793cf29fb64daee6180a1
https://github.com/python/cpython/tree/f0dad890a7d832fab42793cf29fb64daee6180a1
Tests - Add temporary syntax test failure tests in test_parser.pyhttps://github.com/python/cpython/pull/10497/commits/fbea15fe2bae1e1f729cc370a8df95ea63bdea27
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
fbea15fhttps://github.com/python/cpython/pull/10497/commits/fbea15fe2bae1e1f729cc370a8df95ea63bdea27
https://github.com/python/cpython/tree/fbea15fe2bae1e1f729cc370a8df95ea63bdea27
Add support for allowing assignment expressions as function argument annotations. Uncomment tests for these cases because they all pass now!https://github.com/python/cpython/pull/10497/commits/3cd271bc670f1f6949fbc09da2763c9c79b9db1e
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
3cd271bhttps://github.com/python/cpython/pull/10497/commits/3cd271bc670f1f6949fbc09da2763c9c79b9db1e
https://github.com/python/cpython/tree/3cd271bc670f1f6949fbc09da2763c9c79b9db1e
Tests - Move existing syntax tests out of test_parser.py and into test_named_expressions.py. Refactor syntax tests to use unittesthttps://github.com/python/cpython/pull/10497/commits/7b34033ccd15e0cb924eb93e1007bc4091d18cb6
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
7b34033https://github.com/python/cpython/pull/10497/commits/7b34033ccd15e0cb924eb93e1007bc4091d18cb6
https://github.com/python/cpython/tree/7b34033ccd15e0cb924eb93e1007bc4091d18cb6
Add TargetScopeError exception to extend SyntaxErrorhttps://github.com/python/cpython/pull/10497/commits/13671f7a041f99628ed4fdd4dbcd0b187905ad6a
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
13671f7https://github.com/python/cpython/pull/10497/commits/13671f7a041f99628ed4fdd4dbcd0b187905ad6a
https://github.com/python/cpython/tree/13671f7a041f99628ed4fdd4dbcd0b187905ad6a
Tests - Update tests per PEP 572https://github.com/python/cpython/pull/10497/commits/5e4ba891258cb0978ed22551097af950772c5c9f
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
5e4ba89https://github.com/python/cpython/pull/10497/commits/5e4ba891258cb0978ed22551097af950772c5c9f
https://github.com/python/cpython/tree/5e4ba891258cb0978ed22551097af950772c5c9f
Documentation - Small updates to XXX/todo commentshttps://github.com/python/cpython/pull/10497/commits/c1c76ea86d973eabd53347e8137ee37b938bda2c
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
c1c76eahttps://github.com/python/cpython/pull/10497/commits/c1c76ea86d973eabd53347e8137ee37b938bda2c
https://github.com/python/cpython/tree/c1c76ea86d973eabd53347e8137ee37b938bda2c
Fix assert in seq_for_testlist()https://github.com/python/cpython/pull/10497/commits/0ebccb4d4363967f92a342c45313dadbd71372a2
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
0ebccb4https://github.com/python/cpython/pull/10497/commits/0ebccb4d4363967f92a342c45313dadbd71372a2
https://github.com/python/cpython/tree/0ebccb4d4363967f92a342c45313dadbd71372a2
Cleanup - Denote "Not implemented -- No keyword args" on failing test case. Fix PEP8 error for blank lines at beginning of test classes in test_parser.pyhttps://github.com/python/cpython/pull/10497/commits/5500849d5cfaa5ea2da6930cc3c24f6d890166cf
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
5500849https://github.com/python/cpython/pull/10497/commits/5500849d5cfaa5ea2da6930cc3c24f6d890166cf
https://github.com/python/cpython/tree/5500849d5cfaa5ea2da6930cc3c24f6d890166cf
Tests - Wrap all file opens in `with...as` to ensure files are closedhttps://github.com/python/cpython/pull/10497/commits/38dfaa2a25d6a6eeaaec1fdf64e108558ccecf91
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
38dfaa2https://github.com/python/cpython/pull/10497/commits/38dfaa2a25d6a6eeaaec1fdf64e108558ccecf91
https://github.com/python/cpython/tree/38dfaa2a25d6a6eeaaec1fdf64e108558ccecf91
WIP: handle f(a := 1)https://github.com/python/cpython/pull/10497/commits/3aaddc478ce01a65ac2f55cd346ff87348f65e16
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
3aaddc4https://github.com/python/cpython/pull/10497/commits/3aaddc478ce01a65ac2f55cd346ff87348f65e16
https://github.com/python/cpython/tree/3aaddc478ce01a65ac2f55cd346ff87348f65e16
Tests and Cleanup - No longer skips keyword arg test. Keyword arg test now uses a simpler test case and does not rely on an external file. Remove print statements from ast.chttps://github.com/python/cpython/pull/10497/commits/5d525a9ab56d0ff68a75d3f4f62dcaf94af1947d
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
5d525a9https://github.com/python/cpython/pull/10497/commits/5d525a9ab56d0ff68a75d3f4f62dcaf94af1947d
https://github.com/python/cpython/tree/5d525a9ab56d0ff68a75d3f4f62dcaf94af1947d
Tests - Refactor last remaining test case that relied on on external file to use a simpler test case without the dependencyhttps://github.com/python/cpython/pull/10497/commits/32dc443aaa780260aef088acf02e28c9782a5044
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
32dc443https://github.com/python/cpython/pull/10497/commits/32dc443aaa780260aef088acf02e28c9782a5044
https://github.com/python/cpython/tree/32dc443aaa780260aef088acf02e28c9782a5044
Tests - Add better description of remaning skipped tests. Add test checking scope when using assignment expression in a function argumenthttps://github.com/python/cpython/pull/10497/commits/d80608883f1f7de79d3d67656d47fe5ccb20d620
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
d806088https://github.com/python/cpython/pull/10497/commits/d80608883f1f7de79d3d67656d47fe5ccb20d620
https://github.com/python/cpython/tree/d80608883f1f7de79d3d67656d47fe5ccb20d620
Tests - Add test for nested comprehension, testing value and scope. Fix variable name in skipped comprehension scope testhttps://github.com/python/cpython/pull/10497/commits/c1469bf5d1d6827bec73c615f3e8ee3b9e7d47df
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
c1469bfhttps://github.com/python/cpython/pull/10497/commits/c1469bf5d1d6827bec73c615f3e8ee3b9e7d47df
https://github.com/python/cpython/tree/c1469bf5d1d6827bec73c615f3e8ee3b9e7d47df
Handle restriction of LHS for named expressions - can only assign to LHS of type NAME. Specifically, restrict assignment to tupleshttps://github.com/python/cpython/pull/10497/commits/e4e63ed0ab20d62760a424d41c5e2d89a2c8fb8b
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
e4e63edhttps://github.com/python/cpython/pull/10497/commits/e4e63ed0ab20d62760a424d41c5e2d89a2c8fb8b
https://github.com/python/cpython/tree/e4e63ed0ab20d62760a424d41c5e2d89a2c8fb8b
Tests - Update negative test case for assigning to lambda to match new error message. Add negative test case for assigning to tuplehttps://github.com/python/cpython/pull/10497/commits/db936c79aad2553f6dca5dc5b01e7e37cce4cab7
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
db936c7https://github.com/python/cpython/pull/10497/commits/db936c79aad2553f6dca5dc5b01e7e37cce4cab7
https://github.com/python/cpython/tree/db936c79aad2553f6dca5dc5b01e7e37cce4cab7
Tests - Reorder test cases to group invalid syntax cases and named assignment target errorshttps://github.com/python/cpython/pull/10497/commits/47e73675f8051bc27cd7d014dbb85479cde5dc0e
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
47e7367https://github.com/python/cpython/pull/10497/commits/47e73675f8051bc27cd7d014dbb85479cde5dc0e
https://github.com/python/cpython/tree/47e73675f8051bc27cd7d014dbb85479cde5dc0e
Tests - Update test case for named expression in function argument - check that result and variable are set correctlyhttps://github.com/python/cpython/pull/10497/commits/787068e8b8dcc66676c0692f2fca773c778fcaf6
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
787068ehttps://github.com/python/cpython/pull/10497/commits/787068e8b8dcc66676c0692f2fca773c778fcaf6
https://github.com/python/cpython/tree/787068e8b8dcc66676c0692f2fca773c778fcaf6
Todo - Add todo for TargetScopeError based on Guido's comment (https://github.com/python/cpython/commit/2b3acd37bdfc2d35e5094228c6684050d2aa8b0a#r30472562)https://github.com/python/cpython/pull/10497/commits/e21f5c88387a53d693a94395240e60a0ccbf7d0a
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
e21f5c8https://github.com/python/cpython/pull/10497/commits/e21f5c88387a53d693a94395240e60a0ccbf7d0a
https://github.com/python/cpython/tree/e21f5c88387a53d693a94395240e60a0ccbf7d0a
Tests - Add named expression tests for assignment operator in function argumentshttps://github.com/python/cpython/pull/10497/commits/acd0f74ea16074c19e2527d1bc970a84b156e637
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
acd0f74https://github.com/python/cpython/pull/10497/commits/acd0f74ea16074c19e2527d1bc970a84b156e637
https://github.com/python/cpython/tree/acd0f74ea16074c19e2527d1bc970a84b156e637
Add NamedStore to expr_context. Regenerate related code with `make regen-ast`https://github.com/python/cpython/pull/10497/commits/d0dd983148af30a0bb43b432fdb883ccf15511dd
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
d0dd983https://github.com/python/cpython/pull/10497/commits/d0dd983148af30a0bb43b432fdb883ccf15511dd
https://github.com/python/cpython/tree/d0dd983148af30a0bb43b432fdb883ccf15511dd
Add usage of NamedStore to ast_for_named_expr in ast.c. Update occurances of checking for Store to also handle NamedStore where appropriatehttps://github.com/python/cpython/pull/10497/commits/9b136d987173b532b2419cdd875ddd01dd898d1c
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
9b136d9https://github.com/python/cpython/pull/10497/commits/9b136d987173b532b2419cdd875ddd01dd898d1c
https://github.com/python/cpython/tree/9b136d987173b532b2419cdd875ddd01dd898d1c
Add ste_comprehension to _symtable_entry to track if the namespace is a comprehension. Initialize ste_comprehension to 0. Set set_comprehension to 1 in symtable_handle_comprehensionhttps://github.com/python/cpython/pull/10497/commits/8fc5c9962a6c434cbf7ac5afda5426da1ed4faf1
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
8fc5c99https://github.com/python/cpython/pull/10497/commits/8fc5c9962a6c434cbf7ac5afda5426da1ed4faf1
https://github.com/python/cpython/tree/8fc5c9962a6c434cbf7ac5afda5426da1ed4faf1
s/symtable_add_def/symtable_add_def_helper. Add symtable_add_def to handle grabbing st->st_cur and passing it to symtable_add_def_helper. This now allows us to call the original code from symtable_…https://github.com/python/cpython/pull/10497/commits/538dea464440906ff0bf33ebe1c019674a3f33fc
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
538dea4https://github.com/python/cpython/pull/10497/commits/538dea464440906ff0bf33ebe1c019674a3f33fc
https://github.com/python/cpython/tree/538dea464440906ff0bf33ebe1c019674a3f33fc
Refactor symtable_record_directive to take lineno and col_offset as arguments instead of stmt_ty. This allows symtable_record_directive to be used for stmt_ty and expr_tyhttps://github.com/python/cpython/pull/10497/commits/ab34b0bbdc51cad9e86bd02b01a5cfc9fa298fe9
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
ab34b0bhttps://github.com/python/cpython/pull/10497/commits/ab34b0bbdc51cad9e86bd02b01a5cfc9fa298fe9
https://github.com/python/cpython/tree/ab34b0bbdc51cad9e86bd02b01a5cfc9fa298fe9
Handle elevating scope for named expressions in comprehensions.https://github.com/python/cpython/pull/10497/commits/c04a08d72d28f9377da546a0e3d337c07c2ac5fd
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
c04a08dhttps://github.com/python/cpython/pull/10497/commits/c04a08d72d28f9377da546a0e3d337c07c2ac5fd
https://github.com/python/cpython/tree/c04a08d72d28f9377da546a0e3d337c07c2ac5fd
Handle error for usage of named expression inside a class blockhttps://github.com/python/cpython/pull/10497/commits/f0297f89b42f90ced5709f36b5c1068a73265ed2
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
f0297f8https://github.com/python/cpython/pull/10497/commits/f0297f89b42f90ced5709f36b5c1068a73265ed2
https://github.com/python/cpython/tree/f0297f89b42f90ced5709f36b5c1068a73265ed2
Tests - No longer skip scope tests. Add additional scope testshttps://github.com/python/cpython/pull/10497/commits/ee6d78967a5b419143a16975d1e5f6865eeeafdb
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
ee6d789https://github.com/python/cpython/pull/10497/commits/ee6d78967a5b419143a16975d1e5f6865eeeafdb
https://github.com/python/cpython/tree/ee6d78967a5b419143a16975d1e5f6865eeeafdb
Cleanup - Update error message for named expression within a comprehension within a class. Update comments. Add assert for symtable_extend_namedexpr_scope to validate that we always find at least a…https://github.com/python/cpython/pull/10497/commits/c37e3c1967d4aa9747cd4355a40215186fbbab97
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
c37e3c1https://github.com/python/cpython/pull/10497/commits/c37e3c1967d4aa9747cd4355a40215186fbbab97
https://github.com/python/cpython/tree/c37e3c1967d4aa9747cd4355a40215186fbbab97
Cleanup - Add missing case for NamedStore in expr_context_name. Remove unused var in set_namedexpr_contenthttps://github.com/python/cpython/pull/10497/commits/1db3fa9452439d1fb770e14c97c800c8e7f7eb14
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
1db3fa9https://github.com/python/cpython/pull/10497/commits/1db3fa9452439d1fb770e14c97c800c8e7f7eb14
https://github.com/python/cpython/tree/1db3fa9452439d1fb770e14c97c800c8e7f7eb14
Refactor - Consolidate set_context and set_namedexpr_context to reduce duplicated code. Special cases for named expressions are handled by checking if ctx is NamedStorehttps://github.com/python/cpython/pull/10497/commits/0e29038f7a6520b8f00fe6618c67754827b5cc10
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
0e29038https://github.com/python/cpython/pull/10497/commits/0e29038f7a6520b8f00fe6618c67754827b5cc10
https://github.com/python/cpython/tree/0e29038f7a6520b8f00fe6618c67754827b5cc10
Cleanup - Add additional use cases for ast_for_namedexpr in usage comment. Fix multiple blank lines in test_named_expressionshttps://github.com/python/cpython/pull/10497/commits/2ff5744a9ee42698661e49c1d74c0c22401e0df2
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
2ff5744https://github.com/python/cpython/pull/10497/commits/2ff5744a9ee42698661e49c1d74c0c22401e0df2
https://github.com/python/cpython/tree/2ff5744a9ee42698661e49c1d74c0c22401e0df2
Tests - Remove unnecessary test case. Renumber test case function nameshttps://github.com/python/cpython/pull/10497/commits/2494008cba9080717575bf07beb395749e8d7d53
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
2494008https://github.com/python/cpython/pull/10497/commits/2494008cba9080717575bf07beb395749e8d7d53
https://github.com/python/cpython/tree/2494008cba9080717575bf07beb395749e8d7d53
Remove TargetScopeError for now. Will add back if neededhttps://github.com/python/cpython/pull/10497/commits/794a1d11442250ad82f9b0daa7b07625cb289b7b
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
794a1d1https://github.com/python/cpython/pull/10497/commits/794a1d11442250ad82f9b0daa7b07625cb289b7b
https://github.com/python/cpython/tree/794a1d11442250ad82f9b0daa7b07625cb289b7b
Cleanup - Small comment nit for consistencyhttps://github.com/python/cpython/pull/10497/commits/415d469af1d1268ab13fc28a96054b39b70a8f85
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
415d469https://github.com/python/cpython/pull/10497/commits/415d469af1d1268ab13fc28a96054b39b70a8f85
https://github.com/python/cpython/tree/415d469af1d1268ab13fc28a96054b39b70a8f85
Handle positional argument check with named expressionhttps://github.com/python/cpython/pull/10497/commits/162c8c44021c67253b44b9bb8df4a7c62f582ec7
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
162c8c4https://github.com/python/cpython/pull/10497/commits/162c8c44021c67253b44b9bb8df4a7c62f582ec7
https://github.com/python/cpython/tree/162c8c44021c67253b44b9bb8df4a7c62f582ec7
Add TargetScopeError exception definition. Add documentation for TargetScopeError in c-api docs. Throw TargetScopeError instead of SyntaxError when using a named expression in a comprehension withi…https://github.com/python/cpython/pull/10497/commits/68e9e98dadfc67deb70e4d598375aa50218f8016
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
68e9e98https://github.com/python/cpython/pull/10497/commits/68e9e98dadfc67deb70e4d598375aa50218f8016
https://github.com/python/cpython/tree/68e9e98dadfc67deb70e4d598375aa50218f8016
Increase stack size for parser by 200. This is a minimal change (approx. 5kb) and should not have an impact on any systems. Update parser test to allow 99 nested levels againhttps://github.com/python/cpython/pull/10497/commits/1ad4b30966664386a190f76325cddc76fee0ea86
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
1ad4b30https://github.com/python/cpython/pull/10497/commits/1ad4b30966664386a190f76325cddc76fee0ea86
https://github.com/python/cpython/tree/1ad4b30966664386a190f76325cddc76fee0ea86
Add TargetScopeError to exception_hierarchy.txt for test_baseexception.py_https://github.com/python/cpython/pull/10497/commits/1b1d84dead47b1b47590a98c41bcefd875e13397
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
1b1d84dhttps://github.com/python/cpython/pull/10497/commits/1b1d84dead47b1b47590a98c41bcefd875e13397
https://github.com/python/cpython/tree/1b1d84dead47b1b47590a98c41bcefd875e13397
Tests - Major update for named expression tests, both in test_named_expressions and test_parserhttps://github.com/python/cpython/pull/10497/commits/b80108bd3d2c4fb8c81fcfcf218a98e73de9b04f
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
b80108bhttps://github.com/python/cpython/pull/10497/commits/b80108bd3d2c4fb8c81fcfcf218a98e73de9b04f
https://github.com/python/cpython/tree/b80108bd3d2c4fb8c81fcfcf218a98e73de9b04f
Cleanup - Remove unnecessary commenthttps://github.com/python/cpython/pull/10497/commits/6e15f5f6833eba10fd761b16f3f28b2ec491e95f
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
6e15f5fhttps://github.com/python/cpython/pull/10497/commits/6e15f5f6833eba10fd761b16f3f28b2ec491e95f
https://github.com/python/cpython/tree/6e15f5f6833eba10fd761b16f3f28b2ec491e95f
Cleanup - Comment nitpickshttps://github.com/python/cpython/pull/10497/commits/da11136a33b6886009314f3b2ba6f745bcb19ec3
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
da11136https://github.com/python/cpython/pull/10497/commits/da11136a33b6886009314f3b2ba6f745bcb19ec3
https://github.com/python/cpython/tree/da11136a33b6886009314f3b2ba6f745bcb19ec3
Explicitly disallow assignment expressions to a name inside parentheses, e.g.: ((x) := 0)https://github.com/python/cpython/pull/10497/commits/051ad8c998ed48d25d0b246181801a02d60e843d
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
051ad8chttps://github.com/python/cpython/pull/10497/commits/051ad8c998ed48d25d0b246181801a02d60e843d
https://github.com/python/cpython/tree/051ad8c998ed48d25d0b246181801a02d60e843d
Cleanup - Wrap lines more strictly in test filehttps://github.com/python/cpython/pull/10497/commits/f893035b71b51ea3f73817d70f0de6fbafcb45d1
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
f893035https://github.com/python/cpython/pull/10497/commits/f893035b71b51ea3f73817d70f0de6fbafcb45d1
https://github.com/python/cpython/tree/f893035b71b51ea3f73817d70f0de6fbafcb45d1
Revert "Explicitly disallow assignment expressions to a name inside parentheses, e.g.: ((x) := 0)"https://github.com/python/cpython/pull/10497/commits/16d71370bc24bfe21cf817d44030043af8ef5b8e
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
16d7137https://github.com/python/cpython/pull/10497/commits/16d71370bc24bfe21cf817d44030043af8ef5b8e
https://github.com/python/cpython/tree/16d71370bc24bfe21cf817d44030043af8ef5b8e
Add NEWS.d entryhttps://github.com/python/cpython/pull/10497/commits/070983b5aabebc92209898781b17c81e1c58f07f
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
070983bhttps://github.com/python/cpython/pull/10497/commits/070983b5aabebc92209898781b17c81e1c58f07f
https://github.com/python/cpython/tree/070983b5aabebc92209898781b17c81e1c58f07f
Tests - Fix error in test_pickle.test_exceptions by adding TargetScopeError to list of exceptionshttps://github.com/python/cpython/pull/10497/commits/5133800eaf221c1b6f749f8ea5ac49ee01f1a0ba
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
5133800https://github.com/python/cpython/pull/10497/commits/5133800eaf221c1b6f749f8ea5ac49ee01f1a0ba
https://github.com/python/cpython/tree/5133800eaf221c1b6f749f8ea5ac49ee01f1a0ba
Tests - Update error message tests to reflect improved messaging convention (s/can't/cannot)https://github.com/python/cpython/pull/10497/commits/bc2fed3a0f2efa8ae25b6c049677afae90543db1
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
bc2fed3https://github.com/python/cpython/pull/10497/commits/bc2fed3a0f2efa8ae25b6c049677afae90543db1
https://github.com/python/cpython/tree/bc2fed3a0f2efa8ae25b6c049677afae90543db1
Remove cases that cannot be reached in compile.c. Small linting update.https://github.com/python/cpython/pull/10497/commits/f1cabf8657fea5652ff51d05e6dc5bbe2747bfa7
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
f1cabf8https://github.com/python/cpython/pull/10497/commits/f1cabf8657fea5652ff51d05e6dc5bbe2747bfa7
https://github.com/python/cpython/tree/f1cabf8657fea5652ff51d05e6dc5bbe2747bfa7
Update Grammar/Tokens to add COLONEQUAL. Regenerate all fileshttps://github.com/python/cpython/pull/10497/commits/0e0ca07b4d1623f6f9f931dc86961489025daf7d
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
0e0ca07https://github.com/python/cpython/pull/10497/commits/0e0ca07b4d1623f6f9f931dc86961489025daf7d
https://github.com/python/cpython/tree/0e0ca07b4d1623f6f9f931dc86961489025daf7d
Update TargetScopeError PRE_INIT and POST_INIT, as this was purposefully left out when fixing rebase conflictshttps://github.com/python/cpython/pull/10497/commits/1153aae9549496f5ef55c8a06bd8e07521b26618
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
1153aaehttps://github.com/python/cpython/pull/10497/commits/1153aae9549496f5ef55c8a06bd8e07521b26618
https://github.com/python/cpython/tree/1153aae9549496f5ef55c8a06bd8e07521b26618
Add NamedStore back and regenerate fileshttps://github.com/python/cpython/pull/10497/commits/7775b0dec55271ed9214503c9b40b64c300c270d
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
7775b0dhttps://github.com/python/cpython/pull/10497/commits/7775b0dec55271ed9214503c9b40b64c300c270d
https://github.com/python/cpython/tree/7775b0dec55271ed9214503c9b40b64c300c270d
Pass along line number and end col info for named expressionhttps://github.com/python/cpython/pull/10497/commits/10a71f81d28e2f7b3581552c061adb1b93462eba
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
10a71f8https://github.com/python/cpython/pull/10497/commits/10a71f81d28e2f7b3581552c061adb1b93462eba
https://github.com/python/cpython/tree/10a71f81d28e2f7b3581552c061adb1b93462eba
Simplify News entryhttps://github.com/python/cpython/pull/10497/commits/2b9a7bc1a5cb2ea69723fa5d2f2aee3181fcf500
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
2b9a7bchttps://github.com/python/cpython/pull/10497/commits/2b9a7bc1a5cb2ea69723fa5d2f2aee3181fcf500
https://github.com/python/cpython/tree/2b9a7bc1a5cb2ea69723fa5d2f2aee3181fcf500
Fix compiler warning and explicity mark fallthroughhttps://github.com/python/cpython/pull/10497/commits/a63bf06eb78e85b58e9ecde224bbcf438f5b0f7e
https://github.com/emilyemorehouse
emilyemorehousehttps://github.com/python/cpython/commits?author=emilyemorehouse
a63bf06https://github.com/python/cpython/pull/10497/commits/a63bf06eb78e85b58e9ecde224bbcf438f5b0f7e
https://github.com/python/cpython/tree/a63bf06eb78e85b58e9ecde224bbcf438f5b0f7e
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.