]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-111944: Add assignment expression parentheses requirements (GH-111977)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 13 Nov 2023 00:17:54 +0000 (01:17 +0100)
committerGitHub <noreply@github.com>
Mon, 13 Nov 2023 00:17:54 +0000 (00:17 +0000)
commit3b7e308a24fdaf24e45ad3ce980e52a2778b548e
treee5a7eb04509d8fd8f093f6ca7409c935d6d7232f
parent378a96e361bf8cd0614ef25368807fe02fffeab2
[3.12] gh-111944: Add assignment expression parentheses requirements (GH-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 9a2f25d374f027f6509484d66e1c7bba03977b99)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Doc/reference/expressions.rst