[Python-checkins] CVS: python/dist/src/Modules arraymodule.c,2.37,2.38
Fred L. Drake
fdrake@weyr.cnri.reston.va.us
Fri, 4 Feb 2000 15:33:52 -0500 (EST)
Update of /projects/cvsroot/python/dist/src/Modules
In directory weyr:/home/fdrake/projects/python/Modules
Modified Files:
arraymodule.c
Log Message:
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).
Index: arraymodule.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Modules/arraymodule.c,v
retrieving revision 2.37
retrieving revision 2.38
diff -C2 -r2.37 -r2.38
*** arraymodule.c 2000/01/20 22:32:53 2.37
--- arraymodule.c 2000/02/04 20:33:49 2.38
***************
*** 1449,1453 ****
statichere PyTypeObject Arraytype = {
! PyObject_HEAD_INIT(&PyType_Type)
0,
"array",
--- 1449,1453 ----
statichere PyTypeObject Arraytype = {
! PyObject_HEAD_INIT(NULL)
0,
"array",
***************
*** 1477,1480 ****
--- 1477,1482 ----
{
PyObject *m, *d;
+
+ Arraytype.ob_type = &PyType_Type;
m = Py_InitModule3("array", a_methods, module_doc);
d = PyModule_GetDict(m);