summaryrefslogtreecommitdiffstats
path: root/Grammar/python.gram
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2021-04-13 16:51:21 (GMT)
committerGitHub <noreply@github.com>2021-04-13 16:51:21 (GMT)
commit30ed93bfec5dfa7ee05982e2df8fd810f3f49305 (patch)
tree2ba7d8eaba2304ec562e5bb877f7a6e0975954fa /Grammar/python.gram
parentfd79af7ae2574aaaa829e40ed780e17ef1f9be84 (diff)
downloadcpython-30ed93bfec5dfa7ee05982e2df8fd810f3f49305.zip
cpython-30ed93bfec5dfa7ee05982e2df8fd810f3f49305.tar.gz
cpython-30ed93bfec5dfa7ee05982e2df8fd810f3f49305.tar.bz2
bpo-43797: Handle correctly invalid assignments inside function calls and generators (GH-25390)
Diffstat (limited to 'Grammar/python.gram')
-rw-r--r--Grammar/python.gram2
1 files changed, 1 insertions, 1 deletions
diff --git a/Grammar/python.gram b/Grammar/python.gram
index 8524a12..180d952 100644
--- a/Grammar/python.gram
+++ b/Grammar/python.gram
@@ -638,7 +638,7 @@ group[expr_ty]:
| '(' a=(yield_expr | named_expression) ')' { a }
| invalid_group
genexp[expr_ty]:
- | '(' a=named_expression b=for_if_clauses ')' { _PyAST_GeneratorExp(a, b, EXTRA) }
+ | '(' a=direct_named_expression b=for_if_clauses ')' { _PyAST_GeneratorExp(a, b, EXTRA) }
| invalid_comprehension
set[expr_ty]: '{' a=star_named_expressions '}' { _PyAST_Set(a, EXTRA) }
setcomp[expr_ty]: