Kaydet (Commit) b6190d35 authored tarafından Guido van Rossum's avatar Guido van Rossum

Defined array.array_type, the type object.

üst e9eec547
......@@ -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");
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment