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 martin.panter
Recipients martin.panter, ncoghlan, rhettinger, tuxtimo, vstinner, yselivanov
Date 2016-02-07.10:38:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1454841491.69.0.74577395624.issue26264@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-02-07 10:38:11martin.pantersetrecipients: + martin.panter, rhettinger, ncoghlan, vstinner, yselivanov, tuxtimo
2016-02-07 10:38:11martin.pantersetmessageid: <1454841491.69.0.74577395624.issue26264@psf.upfronthosting.co.za>
2016-02-07 10:38:11martin.panterlinkissue26264 messages
2016-02-07 10:38:11martin.pantercreate