[issue41159] Nested async dict comprehension fails with SyntaxError

2020-06-29 Thread Serhiy Storchaka
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 ___

[issue41159] Nested async dict comprehension fails with SyntaxError

2020-06-29 Thread Hrvoje Nikšić
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