Staging
v0.5.1
https://github.com/python/cpython
Revision ad3720359faa933d04bde3d3222fd54e73ee7feb authored by Miss Islington (bot) on 06 July 2019, 21:54:56 UTC, committed by Terry Jan Reedy on 06 July 2019, 21:54:56 UTC
0 is a legal index.
(cherry picked from commit f8709e804d16ec5d44b1d2f00d59a0f78df7b792)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
1 parent d4af553
Raw File
Tip revision: ad3720359faa933d04bde3d3222fd54e73ee7feb authored by Miss Islington (bot) on 06 July 2019, 21:54:56 UTC
bpo-37487: Fix PyList_GetItem index description. (GH-14623) (GH-14624)
Tip revision: ad37203
keyword.py
"""Keywords (from "Grammar/Grammar")

This file is automatically generated; please don't muck it up!

To update the symbols in this file, 'cd' to the top directory of
the python source tree and run:

    python3 -m Parser.pgen.keywordgen Grammar/Grammar \
                                      Grammar/Tokens \
                                      Lib/keyword.py

Alternatively, you can run 'make regen-keyword'.
"""

__all__ = ["iskeyword", "kwlist"]

kwlist = [
    'False',
    'None',
    'True',
    'and',
    'as',
    'assert',
    'async',
    'await',
    'break',
    'class',
    'continue',
    'def',
    'del',
    'elif',
    'else',
    'except',
    'finally',
    'for',
    'from',
    'global',
    'if',
    'import',
    'in',
    'is',
    'lambda',
    'nonlocal',
    'not',
    'or',
    'pass',
    'raise',
    'return',
    'try',
    'while',
    'with',
    'yield'
]

iskeyword = frozenset(kwlist).__contains__
back to top