Lines Matching defs:item

1583 pylong_as_ld(PyObject *item)
1588 tmp = _PyNumber_Index(item);
1598 pylong_as_lu(PyObject *item)
1603 tmp = _PyNumber_Index(item);
1613 pylong_as_lld(PyObject *item)
1618 tmp = _PyNumber_Index(item);
1628 pylong_as_llu(PyObject *item)
1633 tmp = _PyNumber_Index(item);
1643 pylong_as_zd(PyObject *item)
1648 tmp = _PyNumber_Index(item);
1658 pylong_as_zu(PyObject *item)
1663 tmp = _PyNumber_Index(item);
1682 /* Unpack a single item. 'fmt' can be any native format character in struct
1775 /* Pack a single item. 'fmt' can be any native format character in
1778 pack_single(PyMemoryViewObject *self, char *ptr, PyObject *item, const char *fmt)
1792 ld = pylong_as_ld(item);
1813 lu = pylong_as_lu(item);
1834 lld = pylong_as_lld(item);
1841 llu = pylong_as_llu(item);
1850 zd = pylong_as_zd(item);
1857 zu = pylong_as_zu(item);
1866 d = PyFloat_AsDouble(item);
1880 ld = PyObject_IsTrue(item);
1889 if (!PyBytes_Check(item))
1891 if (PyBytes_GET_SIZE(item) != 1)
1893 *ptr = PyBytes_AS_STRING(item)[0];
1898 p = PyLong_AsVoidPtr(item);
1933 char *item; /* buffer for mview */
1934 Py_ssize_t itemsize; /* len(item) */
1949 x->item = NULL;
1961 PyMem_Free(x->item);
2001 x->item = PyMem_Malloc(itemsize);
2002 if (x->item == NULL) {
2008 x->mview = PyMemoryView_FromMemory(x->item, itemsize, PyBUF_WRITE);
2025 /* unpack a single item */
2031 memcpy(x->item, ptr, x->itemsize);
2072 PyObject *lst, *item;
2081 item = unpack_single(self, xptr, fmt);
2082 if (item == NULL) {
2086 PyList_SET_ITEM(lst, i, item);
2099 PyObject *lst, *item;
2115 item = tolist_rec(self, xptr, ndim-1, shape+1,
2118 if (item == NULL) {
2122 PyList_SET_ITEM(lst, i, item);
2307 /* Get the pointer to the item at index. */
2315 /* Get the pointer to the item at tuple. */
2342 /* Return the item at index. In a one-dimensional view, this is an object
2343 with the type specified by view->format. Otherwise, the item is a sub-view.
2373 /* Return the item at position *key* (a tuple of indices). */
2885 memcmp() cannot be used for item comparison since it would give