[issue33346] Syntax error with async generator inside dictionary comprehension

Guido van Rossum report at bugs.python.org
Fri May 11 11:13:54 EDT 2018


Guido van Rossum <guido at python.org> added the comment:

@Ivan: Please stop bringing up that we should drop the implicit scope for comprehensions. I know you feel this way, but it's not going to happen.

@Serhiy: What does the PEP for async/await say? (Or is there a separate PEP for allowing async/await inside comprehensions?)

@Yury: Your thoughts?

I do think the code from the OP's example should be expected to work.

Does it / should it work the same way for generator expressions?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33346>
_______________________________________


More information about the Python-bugs-list mailing list