Skip to content

bpo-34508: allow unparenthesized star-unpacking expressions in return statements #8942

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

Closed
wants to merge 3 commits into from

Conversation

mdickinson
Copy link
Member

@mdickinson mdickinson commented Aug 26, 2018

This PR makes the following (currently illegal) syntax legal:

def f():
    return *(1, 2), *(3, 4)

This eliminates an inconsistency between the target of a return and the target of a simple assignment: the following syntax is already legal:

def f():
    x = *(1, 2), *(3, 4)
    return x

https://bugs.python.org/issue34508

@gvanrossum
Copy link
Member

Shouldn't we just close this? This has already been done.

@gvanrossum
Copy link
Member

Superseded by GH-4509

@gvanrossum gvanrossum closed this Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting merge type-feature A feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants