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

Support narrowing of walrus in most cases (#8458) #32

Merged
merged 1 commit into from
Feb 29, 2020

Conversation

sthagen
Copy link
Owner

@sthagen sthagen commented Feb 29, 2020

It is a pretty simple matter of pulling out the assignment target from
the walrus. We don't bother handling things like x := (y := z) since
I can't imagine they are common enough to be worth bothering but we
could in the future if anyone cares.

Fixes python#8447.

It is a pretty simple matter of pulling out the assignment target from
the walrus. We don't bother handling things like `x := (y := z)` since
I can't imagine they are common enough to be worth bothering but we
could in the future if anyone cares.

Fixes #8447.
@sthagen sthagen merged commit 1feab6b into sthagen:master Feb 29, 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.

PEP 572 Walrus Operator Regex Assignment in Condition
2 participants