[Python-checkins] CVS: python/dist/src/Mac/scripts gensuitemodule.py,1.18,1.19

Jack Jansen jackjansen@users.sourceforge.net
Wed, 23 Jan 2002 14:49:50 -0800


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):