Home
last modified time | relevance | path

Searched refs:Arraytype (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Modules/
Darraymodule.c39 static PyTypeObject Arraytype; variable
41 #define array_Check(op) PyObject_TypeCheck(op, &Arraytype)
42 #define array_CheckExact(op) (Py_TYPE(op) == &Arraytype)
620 np = (arrayobject *) newarrayobject(&Arraytype, ihigh - ilow, a->ob_descr); in array_slice()
661 np = (arrayobject *) newarrayobject(&Arraytype, size, a->ob_descr); in array_concat()
690 np = (arrayobject *) newarrayobject(&Arraytype, size, a->ob_descr); in array_repeat()
1711 return newarrayobject(&Arraytype, 0, self->ob_descr); in array_subscr()
1714 PyObject *result = newarrayobject(&Arraytype, in array_subscr()
1724 result = newarrayobject(&Arraytype, slicelength, self->ob_descr); in array_subscr()
1963 if (type == &Arraytype && !_PyArg_NoKeywords("array.array()", kwds)) in array_new()
[all …]
/external/python/cpython3/Modules/
Darraymodule.c49 static PyTypeObject Arraytype; variable
108 #define array_Check(op) PyObject_TypeCheck(op, &Arraytype)
109 #define array_CheckExact(op) (Py_TYPE(op) == &Arraytype)
807 np = (arrayobject *) newarrayobject(&Arraytype, ihigh - ilow, a->ob_descr); in array_slice()
867 np = (arrayobject *) newarrayobject(&Arraytype, size, a->ob_descr); in array_concat()
894 np = (arrayobject *) newarrayobject(&Arraytype, size, a->ob_descr); in array_repeat()
1985 if (!PyType_IsSubtype(arraytype, &Arraytype)) { in array__array_reconstructor_impl()
1988 arraytype->tp_name, Arraytype.tp_name); in array__array_reconstructor_impl()
2358 return newarrayobject(&Arraytype, 0, self->ob_descr); in array_subscr()
2361 PyObject *result = newarrayobject(&Arraytype, in array_subscr()
[all …]