• Guido van Rossum's avatar
    Ka-Ping Yee's version is better: · eb8c9726
    Guido van Rossum yazdı
    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.
    eb8c9726
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
Parser Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.hgtags Loading commit data...
BUGS Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
TODO Loading commit data...
acconfig.h Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...