8000 [3.11] gh-111944: Add assignment expression parentheses requirements (GH-111977) by miss-islington · Pull Request #112011 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.11] gh-111944: Add assignment expression parentheses requirements (GH-111977) #112011

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

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

miss-islington
Copy link
Contributor
@miss-islington miss-islington commented Nov 13, 2023

gh-111944: Clarify where assignment expressions require ()s

Augment the list of places where parentheses are
required around assignnment statements. In particular,
'a := 0' and 'a = b := 1' are syntax errors.
(cherry picked from commit 9a2f25d)

Co-authored-by: Terry Jan Reedy tjreedy@udel.edu


📚 Documentation preview 📚: https://cpython-previews--112011.org.readthedocs.build/

…ythonGH-111977)

pythongh-111944: Clarify where assignment expressions require ()s

Augment the list of places where parentheses are
required around assignnment statements.  In particular,
'a := 0' and 'a = b := 1' are syntax errors.
(cherry picked from commit 9a2f25d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
@bedevere-app bedevere-app bot added skip news type-bug An unexpected behavior, bug, or error docs Documentation in the Doc dir labels Nov 13, 2023
@terryjreedy terryjreedy enabled auto-merge (squash) November 13, 2023 00:09
@terryjreedy terryjreedy merged commit b64afbc into python:3.11 Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0