bpo-38641: Add support of starred expressions in return/yield to lib2to3 - #16994
Conversation
|
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.
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.
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.
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. |
pablogsal
left a comment
There was a problem hiding this comment.
LGTM
Thanks, @vemel for the PR and @isidentical for the review :)

Goal
bpo-32117 is fixed, but unfortunately
lib2to3still does not support unpacking inreturnandyieldwithout parentheses.Changes
testlist_star_exprinreturn_stmttestlist_star_exprinyield_argSummary
This is a backwards compatible change, because
testlist_star_exprsupportstestas well liketestlistdoes.https://bugs.python.org/issue38641