Serhiy Storchaka added the comment:
This is a duplicate of issue33346.
--
nosy: +serhiy.storchaka
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> Syntax error with async generator inside dictionary
comprehension
___
New submission from Hrvoje Nikšić :
Originally brought up on StackOverflow,
https://stackoverflow.com/questions/60799366/nested-async-comprehension :
This dict comprehension parses and works correctly:
async def bar():
return {
n: await foo(n) for n in [1, 2, 3]
}
But making i