Skip to content

Conversation

@lysnikolaou
Copy link
Member

Prior to this, assignments like x: tuple = 1, 2 were not accepted.

@gvanrossum
Copy link
Collaborator

Hm, isn't that intentional?

@lysnikolaou
Copy link
Member Author

Hm, isn't that intentional?

But x: tuple = 1, 2 is valid in 3.8.

@pablogsal
Copy link
Collaborator

pablogsal commented Mar 23, 2020

I think this was done here:

python/cpython#11667 and python/cpython#13760

Copy link
Collaborator

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it! I had forgotten about that.

Maybe yield_expression could be renamed to annotated_rhs or something? Because that's what it's for -- it's only used as the RHS of an annotated variable.

@lysnikolaou lysnikolaou merged commit 95addf3 into we-like-parsers:master Mar 23, 2020
@lysnikolaou lysnikolaou deleted the assignment-bug branch March 23, 2020 15:54
lysnikolaou added a commit to lysnikolaou/pegen_experiments that referenced this pull request Mar 23, 2020
lysnikolaou added a commit that referenced this pull request Mar 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants