This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: lib2to3 does not support py38 return/yield syntax with starred expressions
Type: enhancement Stage: resolved
Components: 2to3 (2.x to 3.x conversion tool) Versions: Python 3.9, Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Vlad Emelianov, pablogsal
Priority: normal Keywords:

Created on 2019-10-30 13:19 by Vlad Emelianov, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 16994 merged Vlad Emelianov, 2019-10-30 13:19
Messages (2)
msg355713 - (view) Author: Vlad Emelianov (Vlad Emelianov) * Date: 2019-10-30 13:19
Lib2to3 does not support changes made in https://bugs.python.org/issue32117

```python
def test():
    my_list = ["value2", "value3"]
    yield "value1", *my_list
    return "value1", *my_list
```

The idea is to use `testlist_star_expr` instead of `testlist`.

This is a backwards compatible change, because testlist_star_expr supports test as well like testlist does.
msg363085 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2020-03-01 19:59
New changeset 768d739c1cd8c1d41902229581811a9b86bcc76e by Vlad Emelianov in branch 'master':
bpo-38641: Add lib2to3 support for starred expressions in return/yield statements (GH-16994)
https://github.com/python/cpython/commit/768d739c1cd8c1d41902229581811a9b86bcc76e
History
Date User Action Args
2022-04-11 14:59:22adminsetgithub: 82822
2020-03-01 19:59:46pablogsalsetstatus: open -> closed
resolution: fixed
stage: resolved
2020-03-01 19:59:34pablogsalsetnosy: + pablogsal
messages: + msg363085
2019-10-30 13:24:33Vlad Emelianovsetversions: + Python 3.8
2019-10-30 13:19:43Vlad Emelianovcreate