Kaydet (Commit) 90d556fb authored tarafından Guido van Rossum's avatar Guido van Rossum

Simple module to publish list of Python keywords.

üst f789ee4a
"""Export the list of Python keywords (reserved words)."""
# grep '{1, "' ../Python/graminit.c | sed 's/.*"\(.*\)".*/ "\1",/' | sort
keywords = [
"__assert__",
"and",
"break",
"class",
"continue",
"def",
"del",
"elif",
"else",
"except",
"exec",
"finally",
"for",
"from",
"global",
"if",
"import",
"in",
"is",
"lambda",
"not",
"or",
"pass",
"print",
"raise",
"return",
"try",
"while",
]
if __name__ == '__main__':
for k in keywords: print k
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment