mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
need to initialize ob_type slot at run-time, at least on cygwin
This commit is contained in:
parent
29f5933fcb
commit
f3938fd029
1 changed files with 2 additions and 1 deletions
|
@ -413,7 +413,7 @@ teedataobject_dealloc(teedataobject *tdo)
|
|||
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 @@ inititertools(void)
|
|||
NULL
|
||||
};
|
||||
|
||||
teedataobject_type.ob_type = &PyType_Type;
|
||||
m = Py_InitModule3("itertools", module_methods, module_doc);
|
||||
|
||||
for (i=0 ; typelist[i] != NULL ; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue