Skip to content

Conversation

@terryjreedy
Copy link
Member

@terryjreedy terryjreedy commented Nov 11, 2023

Augment the list of places where parentheses are
required around assignnment statements. In particular, 'a := 0' and 'a = b := 1' are syntax errors.


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

Augment the list of places where parentheses are
required around assignnment statements.  In particular,
'a := 0' and 'a = b := 1' are syntax errors.
@terryjreedy terryjreedy added type-bug An unexpected behavior, bug, or error docs Documentation in the Doc dir interpreter-core (Objects, Python, Grammar, and Parser dirs) labels Nov 11, 2023
@terryjreedy terryjreedy self-assigned this Nov 11, 2023
@terryjreedy terryjreedy added needs backport to 3.11 only security fixes needs backport to 3.12 only security fixes labels Nov 11, 2023
@terryjreedy terryjreedy merged commit 9a2f25d into python:main Nov 13, 2023
@miss-islington-app
Copy link

Thanks @terryjreedy for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 13, 2023
…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 <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Nov 13, 2023

GH-112010 is a backport of this pull request to the 3.12 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 13, 2023
…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 <[email protected]>
@bedevere-app bedevere-app bot removed the needs backport to 3.12 only security fixes label Nov 13, 2023
@bedevere-app
Copy link

bedevere-app bot commented Nov 13, 2023

GH-112011 is a backport of this pull request to the 3.11 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.11 only security fixes label Nov 13, 2023
@terryjreedy terryjreedy deleted the walrus_top branch November 13, 2023 00:08
terryjreedy added a commit that referenced this pull request Nov 13, 2023
…H-111977) (#112011)

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 <[email protected]>
terryjreedy added a commit that referenced this pull request Nov 13, 2023
…H-111977) (#112010)

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 <[email protected]>
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…ython#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.
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…ython#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.
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 interpreter-core (Objects, Python, Grammar, and Parser dirs) skip news type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant