diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-12-15 20:04:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-15 20:04:07 (GMT) |
commit | cd968dea28569960e0b78350d43b89b83dbd49c5 (patch) | |
tree | 9a98ae2ddbca6543e9487016c82627bcfd350c02 /Python/ast.c | |
parent | 5c5d8f63d7d235e557ad20e7d722b22772681759 (diff) | |
download | cpython-cd968dea28569960e0b78350d43b89b83dbd49c5.zip cpython-cd968dea28569960e0b78350d43b89b83dbd49c5.tar.gz cpython-cd968dea28569960e0b78350d43b89b83dbd49c5.tar.bz2 |
The comment in ast_for_namedexpr shouldn't include if_stmt (GH-17586)
Automerge-Triggered-By: @gvanrossum
(cherry picked from commit b08d3f71beab59653edfbbcf7b92a7bc8050d6b8)
Co-authored-by: Guido van Rossum <guido@python.org>
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/ast.c b/Python/ast.c index 95caeff..7081394 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 | |