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

Jack Jansen jackjansen@users.sourceforge.net
2001年11月14日 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)

AltStyle によって変換されたページ (->オリジナル) /