From 71c9293e7de6880982dadf10228ff631f2ab6013 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 12 Dec 2019 19:10:21 -0800 Subject: The comment in ast_for_namedexpr shouldn't include if_stmt --- Python/ast.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Python/ast.c b/Python/ast.c index c450b877f1..37fd919311 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 | -- cgit v1.2.1