]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42374: Allow unparenthesized walrus in genexps (GH-23319) (GH-23329)
authorLysandros Nikolaou <lisandrosnik@gmail.com>
Mon, 16 Nov 2020 23:38:58 +0000 (01:38 +0200)
committerGitHub <noreply@github.com>
Mon, 16 Nov 2020 23:38:58 +0000 (01:38 +0200)
commit2b800ef809eefbc96a536e4b43a8285f2353f64d
treea7324a40ab4f2e34a8581fd670554dde2688ada4
parentcf70854f10096446115408b5a94030b30594a459
bpo-42374: Allow unparenthesized walrus in genexps (GH-23319) (GH-23329)

This fixes a regression that was introduced by the new parser.

(cherry picked from commit cb3e5ed0716114393696ec7201e51fe0595eab4f)
Grammar/python.gram
Lib/test/test_named_expressions.py
Misc/NEWS.d/next/Core and Builtins/2020-11-16-17-57-09.bpo-42374.t7np1E.rst [new file with mode: 0644]
Parser/pegen/parse.c