Skip to content
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

lib2to3 does not support py38 return/yield syntax with starred expressions #82822

Closed
vemel mannequin opened this issue Oct 30, 2019 · 2 comments
Closed

lib2to3 does not support py38 return/yield syntax with starred expressions #82822

vemel mannequin opened this issue Oct 30, 2019 · 2 comments
Labels
3.8 only security fixes 3.9 only security fixes topic-2to3 type-feature A feature request or enhancement

Comments

@vemel
Copy link
Mannequin

vemel mannequin commented Oct 30, 2019

BPO 38641
Nosy @pablogsal, @vemel
PRs
  • bpo-38641: Add support of starred expressions in return/yield to lib2to3 #16994
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2020-03-01.19:59:46.282>
    created_at = <Date 2019-10-30.13:19:43.793>
    labels = ['3.8', 'type-feature', 'expert-2to3', '3.9']
    title = 'lib2to3 does not support py38 return/yield syntax with starred expressions'
    updated_at = <Date 2020-03-01.19:59:46.282>
    user = 'https://github.com/vemel'

    bugs.python.org fields:

    activity = <Date 2020-03-01.19:59:46.282>
    actor = 'pablogsal'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-03-01.19:59:46.282>
    closer = 'pablogsal'
    components = ['2to3 (2.x to 3.x conversion tool)']
    creation = <Date 2019-10-30.13:19:43.793>
    creator = 'Vlad Emelianov'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 38641
    keywords = []
    message_count = 2.0
    messages = ['355713', '363085']
    nosy_count = 2.0
    nosy_names = ['pablogsal', 'Vlad Emelianov']
    pr_nums = ['16994']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue38641'
    versions = ['Python 3.8', 'Python 3.9']

    @vemel
    Copy link
    Mannequin Author

    vemel mannequin commented Oct 30, 2019

    Lib2to3 does not support changes made in https://bugs.python.org/issue32117

    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.

    @vemel vemel mannequin added 3.9 only security fixes topic-2to3 type-feature A feature request or enhancement 3.8 only security fixes labels Oct 30, 2019
    @pablogsal
    Copy link
    Member

    New changeset 768d739 by Vlad Emelianov in branch 'master':
    bpo-38641: Add lib2to3 support for starred expressions in return/yield statements (GH-16994)
    768d739

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 only security fixes 3.9 only security fixes topic-2to3 type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant