Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Non-working attempt to introduce := as an assignment operator #6333

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 17 commits into from

Conversation

Rosuav
Copy link
Contributor

@Rosuav Rosuav commented Apr 1, 2018

NOT FOR MERGING

This PR is just to make the branch more visible to maintainers, incl @gvanrossum

Grammar/Grammar Outdated
@@ -83,7 +83,7 @@ with_item: test ['as' expr]
except_clause: 'except' [test ['as' NAME]]
suite: simple_stmt | NEWLINE INDENT stmt+ DEDENT

test: or_test ['if' or_test 'else' test] | lambdef
test: [or_test ':='] or_test ['if' or_test 'else' test] | lambdef
Copy link
Member

Choose a reason for hiding this comment

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

Try or_test [':= or_test] instead.

@Rosuav Rosuav force-pushed the assignment-expressions branch from 8dcb966 to 22547d4 Compare April 10, 2018 13:26
@Rosuav
Copy link
Contributor Author

Rosuav commented Apr 11, 2018

The test suite now passes except for those tests which specifically check for the specialness of the first iterable.

@Rosuav Rosuav force-pushed the assignment-expressions branch from 28e0222 to 8886537 Compare April 15, 2018 04:39
@Rosuav Rosuav force-pushed the assignment-expressions branch from 8886537 to 161aad8 Compare April 17, 2018 07:30
@Rosuav Rosuav requested a review from ilevkivskyi as a code owner April 17, 2018 07:30
These tests would remain valid if genexp priming is implemented.
@csabella
Copy link
Contributor

csabella commented May 7, 2019

This was implemented under bpo-35224 and #10497.

@csabella csabella closed this May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.