[New-bugs-announce] [issue31832] Async list comprehension (PEP 530) causes SyntaxError in Python 3.6.3

Roel van der Goot report at bugs.python.org
Fri Oct 20 19:08:38 EDT 2017


New submission from Roel van der Goot <roelvandergoot at gmail.com>:

$ python3
Python 3.6.3 (default, Oct  3 2017, 21:45:48) 
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> async def arange(n):
...     for i in range(n):
...         yield i
... 
>>> [i async for i in arange(10)]
  File "<stdin>", line 1
    [i async for i in arange(10)]
           ^
SyntaxError: invalid syntax
>>>

----------
components: asyncio
messages: 304688
nosy: cannedrag, yselivanov
priority: normal
severity: normal
status: open
title: Async list comprehension (PEP 530) causes SyntaxError in Python 3.6.3
versions: Python 3.6

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


More information about the New-bugs-announce mailing list