Mercurial > cpython-lru_cache-weakref
diff Modules/itertoolsmodule.c @ 31508:71864820402d legacy-trunk
need to initialize ob_type slot at run-time, at least on cygwin
| author | Skip Montanaro <skip@pobox.com> |
|---|---|
| date | Tue, 10 Feb 2004 20:27:40 +0000 |
| parents | 14f860b03be2 |
| children | f7374e3b279a |
line wrap: on
line diff
--- a/Modules/itertoolsmodule.c Tue Feb 10 18:30:22 2004 +0000 +++ b/Modules/itertoolsmodule.c Tue Feb 10 20:27:40 2004 +0000 @@ -413,7 +413,7 @@ PyDoc_STRVAR(teedataobject_doc, "Data container common to multiple tee objects."); static PyTypeObject teedataobject_type = { - PyObject_HEAD_INIT(&PyType_Type) + PyObject_HEAD_INIT(0) /* Must fill in type value later */ 0, /* ob_size */ "itertools.tee_dataobject", /* tp_name */ sizeof(teedataobject), /* tp_basicsize */ @@ -2465,6 +2465,7 @@ NULL }; + teedataobject_type.ob_type = &PyType_Type; m = Py_InitModule3("itertools", module_methods, module_doc); for (i=0 ; typelist[i] != NULL ; i++) {
