This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients gvanrossum, skrah, yselivanov
Date 2015-07-12.18:49:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1436726953.3.0.0167564142202.issue24619@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2015-07-12 18:49:13skrahsetrecipients: + skrah, gvanrossum, yselivanov
2015-07-12 18:49:13skrahsetmessageid: <1436726953.3.0.0167564142202.issue24619@psf.upfronthosting.co.za>
2015-07-12 18:49:13skrahlinkissue24619 messages
2015-07-12 18:49:13skrahcreate