diff options
author | Guido van Rossum <guido@python.org> | 1997-03-20 19:45:51 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-03-20 19:45:51 (GMT) |
commit | eb8c972648c9fec8bad5419eb1ab13cafa52d3d8 (patch) | |
tree | 1779760f4d32d139838e4dd6bea22859ed858ac6 /Lib/dos_8x3 | |
parent | 90d556fb6e71ca05b14c514b0c9a53a99839a3e0 (diff) | |
download | cpython-eb8c972648c9fec8bad5419eb1ab13cafa52d3d8.zip cpython-eb8c972648c9fec8bad5419eb1ab13cafa52d3d8.tar.gz cpython-eb8c972648c9fec8bad5419eb1ab13cafa52d3d8.tar.bz2 |
Ka-Ping Yee's version is better:
Here's a "keyword" module which, in the spirit of "token.py", updates
the list of keywords automatically from a source file (in this case,
"graminit.c" seemed like a reasonable choice, easier than "Grammar/Grammar").
You get "kwlist", a sorted list of keywords; "kwdict", a dictionary
mapping each keyword to 1; and "iskeyword", a function which tells
you if a given string happens to be a keyword.
Diffstat (limited to 'Lib/dos_8x3')
0 files changed, 0 insertions, 0 deletions