[issue10544] yield expression inside generator expression does nothing

Glyph Lefkowitz report at bugs.python.org
Wed Jan 25 17:15:12 EST 2017


Glyph Lefkowitz added the comment:

>>> async def foo():
...     bar = [await x for x in range(10)]
  File "<input>", line 2
SyntaxError: 'await' expressions in comprehensions are not supported

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10544>
_______________________________________


More information about the Python-bugs-list mailing list