From b6190d35fc1bc781ed2887b4020b8251bca4c6ae Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 22 May 1997 14:56:36 +0000 Subject: Defined array.array_type, the type object. --- Modules/arraymodule.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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"); } -- cgit v0.12