Message246660
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 |
|
Date |
User |
Action |
Args |
2015-07-12 18:49:13 | skrah | set | recipients:
+ skrah, gvanrossum, yselivanov |
2015-07-12 18:49:13 | skrah | set | messageid: <1436726953.3.0.0167564142202.issue24619@psf.upfronthosting.co.za> |
2015-07-12 18:49:13 | skrah | link | issue24619 messages |
2015-07-12 18:49:13 | skrah | create | |
|