[Python-checkins] CVS: python/dist/src/Tools/bgen/bgen bgenObjectDefinition.py,1.13,1.14

Jack Jansen jackjansen@users.sourceforge.net
Wed, 14 Nov 2001 07:48:15 -0800


Update of /cvsroot/python/python/dist/src/Tools/bgen/bgen
In directory usw-pr-cvs1:/tmp/cvs-serv30459

Modified Files:
	bgenObjectDefinition.py 
Log Message:
Don't initialize tp_type statically, it won't work on Windows. Spotted
by Thomas Heller (patch 459442).


Index: bgenObjectDefinition.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/bgen/bgen/bgenObjectDefinition.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** bgenObjectDefinition.py	2001/09/04 22:16:33	1.13
--- bgenObjectDefinition.py	2001/11/14 15:48:13	1.14
***************
*** 165,169 ****
  		Output("%sPyTypeObject %s = {", sf, self.typename)
  		IndentLevel()
! 		Output("PyObject_HEAD_INIT(&PyType_Type)")
  		Output("0, /*ob_size*/")
  		Output("\"%s\", /*tp_name*/", self.name)
--- 165,169 ----
  		Output("%sPyTypeObject %s = {", sf, self.typename)
  		IndentLevel()
! 		Output("PyObject_HEAD_INIT(NULL)")
  		Output("0, /*ob_size*/")
  		Output("\"%s\", /*tp_name*/", self.name)