Martin Panter added the comment:

According to PEP 492, “await” is still allowed to be an ordinary identifier in 
non-async functions until Python 3.7. Which means you are still allowed to write

def oh_hai():
    await = "something"

The proposed error message would need to be smart enough to distinguish the two 
cases.

----------
nosy: +martin.panter

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26188>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to