[Python-checkins] python/dist/src/Modules itertoolsmodule.c, 1.28, 1.29

montanaro at users.sourceforge.net montanaro at users.sourceforge.net
Tue Feb 10 15:27:43 EST 2004


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13513/Modules

Modified Files:
	itertoolsmodule.c 
Log Message:
need to initialize ob_type slot at run-time, at least on cygwin


Index: itertoolsmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/itertoolsmodule.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** itertoolsmodule.c	10 Feb 2004 09:25:40 -0000	1.28
--- itertoolsmodule.c	10 Feb 2004 20:27:40 -0000	1.29
***************
*** 414,418 ****
  
  static PyTypeObject teedataobject_type = {
! 	PyObject_HEAD_INIT(&PyType_Type)
  	0,					/* ob_size */
  	"itertools.tee_dataobject",		/* tp_name */
--- 414,418 ----
  
  static PyTypeObject teedataobject_type = {
! 	PyObject_HEAD_INIT(0)	/* Must fill in type value later */
  	0,					/* ob_size */
  	"itertools.tee_dataobject",		/* tp_name */
***************
*** 2466,2469 ****
--- 2466,2470 ----
  	};
  
+ 	teedataobject_type.ob_type = &PyType_Type;
  	m = Py_InitModule3("itertools", module_methods, module_doc);
  




More information about the Python-checkins mailing list