Skip to content

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

@mdickinson mdickinson added the type-feature A feature request or enhancement label Aug 26, 2018
@mdickinson
Copy link
Member Author

mdickinson commented Aug 26, 2018

Closing. I accidentally created a branch on python/cpython instead of in my own fork. Apologies.

EDIT: Recreated as #8942.

@mdickinson mdickinson closed this Aug 26, 2018
@mdickinson mdickinson deleted the issue34508 branch August 26, 2018 16:13
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