-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-38558: Mention :=
in conditions tutorial.
8000
#16919
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch @ammaraskar, this section of the tutorial should definitely be updated to mention the walrus operator for 3.8 and 3.9.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after apply @aeros suggestion
Thanks @ammaraskar for the PR, and @zware for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8. |
Thanks for the patch! |
GH-16926 is a backport of this pull request to the 3.8 branch. |
This mention about assignments is now stale with the introduction of the assignment expression operator. Adjust the wording to mention that
:=
must be used explicitly, the rest of the paragraph explaining motivation still applies.https://bugs.python.org/issue38558