We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23538a8 commit fcf129fCopy full SHA for fcf129f
Doc/reference/expressions.rst
@@ -471,7 +471,7 @@ Generator expressions
471
A generator expression is a compact generator notation in parentheses:
472
473
.. productionlist:: python-grammar
474
- generator_expression: "(" starred_expression `comp_for` ")"
+ generator_expression: "(" `flexible_expression` `comp_for` ")"
475
476
A generator expression yields a new generator object. Its syntax is the same as
477
for comprehensions, except that it is enclosed in parentheses instead of
0 commit comments