Lines Matching defs:items
297 /* Pack all items into the buffer of 'obj'. The 'format' parameter must be
301 pack_from_list(PyObject *obj, PyObject *items, PyObject *format,
307 Py_ssize_t nitems; /* number of items */
313 assert(PyList_Check(items) || PyTuple_Check(items));
319 nitems = PySequence_Fast_GET_SIZE(items);
352 item = PySequence_Fast_GET_ITEM(items, i);
822 init_simple(ndbuf_t *ndbuf, PyObject *items, PyObject *format,
833 ret = pack_from_list(mview, items, format, itemsize);
1177 init_ndbuf(PyObject *items, PyObject *shape, PyObject *strides,
1223 items = Py_BuildValue("(O)", items);
1224 if (items == NULL)
1228 CHECK_LIST_OR_TUPLE(items)
1229 Py_INCREF(items);
1232 /* number of items */
1233 nitems = PySequence_Fast_GET_SIZE(items);
1237 Py_DECREF(items);
1243 Py_DECREF(items);
1248 if (init_simple(ndbuf, items, format, itemsize) < 0)
1253 Py_DECREF(items);
1257 Py_DECREF(items);
1264 ndarray_push_base(NDArrayObject *nd, PyObject *items,
1270 ndbuf = init_ndbuf(items, shape, strides, offset, format, flags);
1350 "items", "shape", "strides", "offset", "format", "flags", NULL
1352 PyObject *items = NULL; /* initializer: scalar, list or tuple */
1360 &items, &shape, &strides, &offset, &format, &flags))
1380 if (ndarray_push_base(nd, items, shape, strides,
1558 Py_ssize_t nitems; /* items in the first dimension */