Kaydet (Commit) 4ed6be71 authored tarafından Guido van Rossum's avatar Guido van Rossum

Import the keyword module instead of relying on our own list of

reserved words.  No longer need to import string.
üst 41c6719f
"""Spit out the Python reserved words table."""
import string
raw_words = """
and del for is raise
assert elif from lambda return
break else global not try
class except if or while
continue exec import pass
def finally in print
"""
import keyword
ncols = 5
def main():
words = string.split(raw_words)
words = keyword.kwlist[:]
words.sort()
colwidth = 1 + max(map(len, words))
nwords = len(words)
......
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