summaryrefslogtreecommitdiffstats
path: root/Modules/arraymodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r--Modules/arraymodule.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c
index b6ae98d..190600e 100644
--- a/Modules/arraymodule.c
+++ b/Modules/arraymodule.c
@@ -1315,5 +1315,10 @@ static PyMethodDef a_methods[] = {
void
initarray()
{
- Py_InitModule("array", a_methods);
+ PyObject *m, *d;
+ m = Py_InitModule("array", a_methods);
+ d = PyModule_GetDict(m);
+ if (PyDict_SetItemString(d, "array_type",
+ (PyObject *)&Arraytype) != 0)
+ Py_FatalError("can't define array.array_type");
}