Martin Panter added the comment:

To answer my question, it looks like the keywords.py list is automatically 
generated (by running the script) from Python/graminit.c, in turn generated 
from Grammar/Grammar. “Yield” and “with” were always listed even when the 
__future__ statement was needed to enable them (2.2 and 2.5). But currently 
ASYNC and AWAIT are in Grammar as what I believe are special tokens, rather 
than normal keywords.

Depending on the purpose of the syntax highlighting or code analysis, it might 
be better for these to be listed as keywords now, rather than waiting until 3.7.

----------

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

Reply via email to