[issue30406] async and await should be keywords in 3.7
Pierre Quentel
report at bugs.python.org
Sat Nov 4 05:19:57 EDT 2017
Pierre Quentel <pierre.quentel at gmail.com> added the comment:
According to PEP 492, async and await should have been deprecated in 3.5 and 3.6, but I don't think they have been :
await = 1
def f(async=True):
...
don't raise any deprecation warning in 3.6.
Since version 3.7 will break existing code with a SyntaxError, could it be possible to have something explicit in the SyntaxError message for these new keywords, for instance
SyntaxError : 'async' is a keyword
I don't speack C so I can't provide a patch, sorry.
----------
nosy: +quentel
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue30406>
_______________________________________
More information about the Python-bugs-list
mailing list