File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -218,10 +218,12 @@ A comprehension in an :keyword:`!async def` function may consist of either a
218218:keyword: `!for ` or :keyword: `!async for ` clause following the leading
219219expression, may contain additional :keyword: `!for ` or :keyword: `!async for `
220220clauses, and may also use :keyword: `await ` expressions.
221- If a comprehension contains either :keyword: `!async for ` clauses or
222- :keyword: `!await ` expressions or other asynchronous comprehensions it is called
223- an :dfn: `asynchronous comprehension `. An asynchronous comprehension may
224- suspend the execution of the coroutine function in which it appears.
221+
222+ If a comprehension contains :keyword: `!async for ` clauses, or if it contains
223+ :keyword: `!await ` expressions or other asynchronous comprehensions anywhere except
224+ the iterable expression in the leftmost :keyword: `!for ` clause, it is called an
225+ :dfn: `asynchronous comprehension `. An asynchronous comprehension may suspend the
226+ execution of the coroutine function in which it appears.
225227See also :pep: `530 `.
226228
227229.. versionadded :: 3.6
You can’t perform that action at this time.
0 commit comments