Mercurial > cpython-lru_cache-weakref
diff Modules/arraymodule.c @ 11711:6546ea06e157 legacy-trunk
Patch from Paul Sokolovsky <Paul.Sokolovsky@technologist.com>:
Attached is patch (against 1.5.2 release) to allow some modules
to be buildable as pyd's (usual &PyType_Type stuff).
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Fri, 04 Feb 2000 20:33:49 +0000 |
| parents | 5e6e9e893acd |
| children | 1c7c2dd1beb1 |
line wrap: on
line diff
--- a/Modules/arraymodule.c Fri Feb 04 19:37:35 2000 +0000 +++ b/Modules/arraymodule.c Fri Feb 04 20:33:49 2000 +0000 @@ -1448,7 +1448,7 @@ "; statichere PyTypeObject Arraytype = { - PyObject_HEAD_INIT(&PyType_Type) + PyObject_HEAD_INIT(NULL) 0, "array", sizeof(arrayobject), @@ -1476,6 +1476,8 @@ initarray() { PyObject *m, *d; + + Arraytype.ob_type = &PyType_Type; m = Py_InitModule3("array", a_methods, module_doc); d = PyModule_GetDict(m); PyDict_SetItemString(d, "ArrayType", (PyObject *)&Arraytype);
