Skip to content

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

Closed
mdickinson wants to merge 3 commits into
python:masterfrom
mdickinson:issue34508
Closed

bpo-34508: allow unparenthesized star-unpacking expressions in return statements#8942
mdickinson wants to merge 3 commits into
python:masterfrom
mdickinson:issue34508

Conversation

@mdickinson

@mdickinson mdickinson commented Aug 26, 2018

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

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

@gvanrossum

Copy link
Copy Markdown
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