Message259779
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. |
|
Date |
User |
Action |
Args |
2016-02-07 10:38:11 | martin.panter | set | recipients:
+ martin.panter, rhettinger, ncoghlan, vstinner, yselivanov, tuxtimo |
2016-02-07 10:38:11 | martin.panter | set | messageid: <1454841491.69.0.74577395624.issue26264@psf.upfronthosting.co.za> |
2016-02-07 10:38:11 | martin.panter | link | issue26264 messages |
2016-02-07 10:38:11 | martin.panter | create | |
|