[New-bugs-announce] [issue24619] async/await parser issues
Stefan Krah
report at bugs.python.org
Sun Jul 12 20:49:13 CEST 2015
New submission from Stefan Krah:
If I understand the reference manual correctly, these should probably
be rejected by the compiler:
>>> async def f():
... def g(): pass
... async = 10
...
>>> async def f():
... def async():
... pass
...
>>> async def f(): async = 10
...
>>> async def f():
... def await(): pass
...
>>>
And this should perhaps be accepted:
>>> async def f():
... return lambda await: await
File "<stdin>", line 2
return lambda await: await
^
SyntaxError: invalid syntax
This, too:
>>> async def f():
... async def g(): pass
... await z
File "<stdin>", line 3
await z
^
SyntaxError: invalid syntax
----------
messages: 246660
nosy: gvanrossum, skrah, yselivanov
priority: normal
severity: normal
status: open
title: async/await parser issues
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24619>
_______________________________________
More information about the New-bugs-announce
mailing list