diff options
author | Guido van Rossum <guido@python.org> | 1997-05-22 14:56:36 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-05-22 14:56:36 (GMT) |
commit | b6190d35fc1bc781ed2887b4020b8251bca4c6ae (patch) | |
tree | a045a313194480a1a3b9c47ccdd10982f5c62188 /Modules | |
parent | e9eec547980ee773b11df708898c0f65d7fc905c (diff) | |
download | cpython-b6190d35fc1bc781ed2887b4020b8251bca4c6ae.zip cpython-b6190d35fc1bc781ed2887b4020b8251bca4c6ae.tar.gz cpython-b6190d35fc1bc781ed2887b4020b8251bca4c6ae.tar.bz2 |
Defined array.array_type, the type object.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/arraymodule.c | 7 |
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"); } |