Skip to content
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

Add support for assignment expressions #879

Merged
merged 2 commits into from
Oct 21, 2019

Conversation

FichteFoll
Copy link
Contributor

@FichteFoll FichteFoll commented Jul 31, 2019

Introduced in Python 3.8 with PEP-572. Refer to https://www.python.org/dev/peps/pep-0572.

I took some tests from the PEP's examples section.

Closes #865.

(Really not a fan of binary operators before line breaks.)

Copy link
Member

@asottile asottile left a comment

Choose a reason for hiding this comment

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

Thanks for the patch!

@FichteFoll FichteFoll mentioned this pull request Oct 20, 2019
@FichteFoll
Copy link
Contributor Author

Since Python 3.8 has been out for almost a week now, a new release with support for assignment expressions and the other syntax addition (#872) should probably be provided sooner rather than later. Without this change, pycodestyle will remain oblivious to the new syntax and issue multiple complaints, unless you disable checking for the lines that use it.

.travis.yml Outdated Show resolved Hide resolved
@sigmavirus24 sigmavirus24 merged commit d219c68 into PyCQA:master Oct 21, 2019
@FichteFoll FichteFoll deleted the pr/pep-572 branch October 21, 2019 18:06
@fr0der1c
Copy link

Is there a planned release date, please?

@yvvt0379
Copy link

yvvt0379 commented Apr 3, 2020

Thanks for the patch!

So when will it be updated? It's been almost half a year since Python 3.8 was released!

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.

Support PEP 572
5 participants