Skip to content

Commit fcf129f

Browse files
committed
docs: fix generator_expression grammar rule
1 parent 23538a8 commit fcf129f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/expressions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ Generator expressions
471471
A generator expression is a compact generator notation in parentheses:
472472

473473
.. productionlist:: python-grammar
474-
generator_expression: "(" starred_expression `comp_for` ")"
474+
generator_expression: "(" `flexible_expression` `comp_for` ")"
475475

476476
A generator expression yields a new generator object. Its syntax is the same as
477477
for comprehensions, except that it is enclosed in parentheses instead of

0 commit comments

Comments
 (0)