-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-38641: Add support of starred expressions in return/yield to lib2to3 #16994
Conversation
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept this contribution by verifying everyone involved has signed the PSF contributor agreement (CLA). Recognized GitHub usernameWe couldn't find a bugs.python.org (b.p.o) account corresponding to the following GitHub usernames: This might be simply due to a missing "GitHub Name" entry in one's b.p.o account settings. This is necessary for legal reasons before we can look at this contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. You can check yourself to see if the CLA has been received. Thanks again for the contribution, we look forward to reviewing it! |
Hi @vemel and thanks for the change! Could you sign the CLA and add a NEWS entry? Thanks! |
I have already signed CLA. Going to add news section now. |
Just added news section. |
@@ -0,0 +1 @@ | |||
Added starred expressions support to ``return`` and ``yield`` statements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you specify this is a bug related to lib2to3
here, also you can add a Patch by <name>.
attribution at the end of news.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated, thank you!
Codecov Report
@@ Coverage Diff @@
## master #16994 +/- ##
=========================================
Coverage 82.11% 82.12%
=========================================
Files 1956 1955 -1
Lines 589364 584024 -5340
Branches 44457 44457
=========================================
- Hits 483966 479605 -4361
+ Misses 95746 94772 -974
+ Partials 9652 9647 -5
Continue to review full report at Codecov.
|
Looks like unit test for MacOS are broken, but it is not related to current PR. Probably it makes sense to fix them in another PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except for the ACKS file, I think you did something wrong while you were rebasing/merging. Can you check it again @vemel
Indeed. Fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks, @vemel for the PR and @isidentical for the review :)
Thanks @vemel for the PR! |
Goal
bpo-32117 is fixed, but unfortunately
lib2to3
still does not support unpacking inreturn
andyield
without parentheses.Changes
testlist_star_expr
inreturn_stmt
testlist_star_expr
inyield_arg
Summary
This is a backwards compatible change, because
testlist_star_expr
supportstest
as well liketestlist
does.https://bugs.python.org/issue38641