2019-03-26 06:01:12 +08:00
|
|
|
"""Keywords (from "Grammar/Grammar")
|
2000-02-04 23:10:34 +08:00
|
|
|
|
|
|
|
This file is automatically generated; please don't muck it up!
|
|
|
|
|
|
|
|
To update the symbols in this file, 'cd' to the top directory of
|
2019-03-26 06:01:12 +08:00
|
|
|
the python source tree and run:
|
|
|
|
|
|
|
|
python3 -m Parser.pgen.keywordgen Grammar/Grammar \
|
|
|
|
Grammar/Tokens \
|
|
|
|
Lib/keyword.py
|
2000-02-04 23:10:34 +08:00
|
|
|
|
2019-03-26 06:01:12 +08:00
|
|
|
Alternatively, you can run 'make regen-keyword'.
|
2000-02-04 23:10:34 +08:00
|
|
|
"""
|
1997-03-21 03:45:51 +08:00
|
|
|
|
2002-10-30 13:17:22 +08:00
|
|
|
__all__ = ["iskeyword", "kwlist"]
|
2001-01-24 14:27:27 +08:00
|
|
|
|
1997-03-21 03:45:51 +08:00
|
|
|
kwlist = [
|
2019-03-26 06:01:12 +08:00
|
|
|
'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'
|
|
|
|
]
|
2019-03-08 04:38:08 +08:00
|
|
|
|
2003-12-02 15:48:15 +08:00
|
|
|
iskeyword = frozenset(kwlist).__contains__
|