summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2019-12-15 18:00:33 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-12-15 18:00:33 (GMT)
commitb08d3f71beab59653edfbbcf7b92a7bc8050d6b8 (patch)
tree032cfbb947166fa6bceb04a428681d798845c5e1 /Python
parent39afa2d3147e4b05a1161cc90dbf09b95072c2bb (diff)
downloadcpython-b08d3f71beab59653edfbbcf7b92a7bc8050d6b8.zip
cpython-b08d3f71beab59653edfbbcf7b92a7bc8050d6b8.tar.gz
cpython-b08d3f71beab59653edfbbcf7b92a7bc8050d6b8.tar.bz2
The comment in ast_for_namedexpr shouldn't include if_stmt (GH-17586)
Automerge-Triggered-By: @gvanrossum
Diffstat (limited to 'Python')
-rw-r--r--Python/ast.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/ast.c b/Python/ast.c
index 55fe58c..c0d67a15 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -1935,9 +1935,7 @@ ast_for_decorated(struct compiling *c, const node *n)
static expr_ty
ast_for_namedexpr(struct compiling *c, const node *n)
{
- /* if_stmt: 'if' namedexpr_test ':' suite ('elif' namedexpr_test ':' suite)*
- ['else' ':' suite]
- namedexpr_test: test [':=' test]
+ /* namedexpr_test: test [':=' test]
argument: ( test [comp_for] |
test ':=' test |
test '=' test |