Update of /cvsroot/python/python/dist/src/Mac/scripts In directory usw-pr-cvs1:/tmp/cvs-serv26452 Modified Files: gensuitemodule.py Log Message: (Much) better list of Python keywords, supplied by Michael J. Barber. Index: gensuitemodule.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Mac/scripts/gensuitemodule.py,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** gensuitemodule.py 2002/01/22 23:24:03 1.18 --- gensuitemodule.py 2002/01/23 22:49:48 1.19 *************** *** 817,823 **** return '[%s]' % string.join(bits) ! # XXXX Do we have a set of python keywords somewhere? ! illegal_ids = [ "for", "in", "from", "and", "or", "not", "print", "class", "return", ! "def" ] def identify(str): --- 817,825 ---- return '[%s]' % string.join(bits) ! # Set of Python keywords (as of Python 2.2) ! illegal_ids = ["and", "elif", "global", "or", "assert", "else", "if", "pass", ! "break", "except", "import", "print", "class", "exec", "in", "raise", ! "continue", "finally", "is", "return", "def", "for", "lambda", "try", ! "del", "from", "not", "while"] def identify(str):
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4