Commit Graph

7 Commits

Author SHA1 Message Date
Guido van Rossum 45e2fbc2e7 Mass check-in after untabifying all files that need it. 1998-03-26 21:13:24 +00:00
Guido van Rossum 9694fcab53 Convert all remaining *simple* cases of regex usage to re usage. 1997-10-22 21:00:49 +00:00
Guido van Rossum ed57d7663e Regenerated; __assert__ becomes assert. 1997-07-23 18:10:52 +00:00
Guido van Rossum 4d81984011 Ping's new version -- more efficient at finding the keywords. 1997-03-20 20:40:45 +00:00
Guido van Rossum 3d99e35884 Added __assert__. 1997-03-20 19:46:41 +00:00
Guido van Rossum eb8c972648 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.
1997-03-20 19:45:51 +00:00
Guido van Rossum 90d556fb6e Simple module to publish list of Python keywords. 1997-03-20 19:44:30 +00:00