mirror of
https://github.com/python/cpython.git
synced 2025-12-10 11:00:14 +00:00
Defined array.array_type, the type object.
This commit is contained in:
parent
e9eec54798
commit
b6190d35fc
1 changed files with 6 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue