From b1ad15db825150752c41dad471f8165c7f2eb177 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 15 Dec 2019 10:00:33 -0800 Subject: [PATCH] The comment in ast_for_namedexpr shouldn't include if_stmt (GH-17586) Automerge-Triggered-By: @gvanrossum --- Python/ast.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Python/ast.c b/Python/ast.c index 55fe58c5f39c2d..c0d67a15a6d7dd 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 |