mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
The comment in ast_for_namedexpr shouldn't include if_stmt (GH-17586)
Automerge-Triggered-By: @gvanrossum
This commit is contained in:
committed by
Miss Islington (bot)
parent
39afa2d314
commit
b08d3f71be
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user