blob: ddcbb25d3d3f585de56088850cddafbcd527709c [file] [log] [blame]
Pablo Galindo91759d92019-03-25 22:01:12 +00001"""Keywords (from "Grammar/Grammar")
Guido van Rossum54f22ed2000-02-04 15:10:34 +00002
3This file is automatically generated; please don't muck it up!
4
5To update the symbols in this file, 'cd' to the top directory of
Pablo Galindo91759d92019-03-25 22:01:12 +00006the python source tree and run:
Guido van Rossum54f22ed2000-02-04 15:10:34 +00007
Pablo Galindo91759d92019-03-25 22:01:12 +00008 python3 -m Parser.pgen.keywordgen Grammar/Grammar \
9 Grammar/Tokens \
10 Lib/keyword.py
11
12Alternatively, you can run 'make regen-keyword'.
Guido van Rossum54f22ed2000-02-04 15:10:34 +000013"""
Guido van Rossum90d556f1997-03-20 19:44:30 +000014
Raymond Hettingeredc853e2002-10-30 05:17:22 +000015__all__ = ["iskeyword", "kwlist"]
Skip Montanaro17ab1232001-01-24 06:27:27 +000016
Guido van Rossumeb8c9721997-03-20 19:45:51 +000017kwlist = [
Pablo Galindo91759d92019-03-25 22:01:12 +000018 'False',
19 'None',
20 'True',
21 'and',
22 'as',
23 'assert',
24 'async',
25 'await',
26 'break',
27 'class',
28 'continue',
29 'def',
30 'del',
31 'elif',
32 'else',
33 'except',
34 'finally',
35 'for',
36 'from',
37 'global',
38 'if',
39 'import',
40 'in',
41 'is',
42 'lambda',
43 'nonlocal',
44 'not',
45 'or',
46 'pass',
47 'raise',
48 'return',
49 'try',
50 'while',
51 'with',
52 'yield'
53]
Guido van Rossum495da292019-03-07 12:38:08 -080054
Raymond Hettinger70ef8692003-12-02 07:48:15 +000055iskeyword = frozenset(kwlist).__contains__