Lines Matching defs:items

3 /* An array is a uniform list -- all items have the same type.
130 char *items;
172 items = self->ob_item;
176 PyMem_RESIZE(items, char, (_new_size * self->ob_descr->itemsize));
178 items = NULL;
179 if (items == NULL) {
183 self->ob_item = items;
639 char *items;
650 items = self->ob_item;
660 memmove(items + (where+1)*self->ob_descr->itemsize,
661 items + where*self->ob_descr->itemsize,
740 /* Search for the first index where items are different */
760 /* No more items to compare -- compare sizes */
960 if (d > 0) { /* Delete d items */
1279 Append items to the end of the array.
1313 Return a tuple (address, length) giving the current memory address and the length in items of the buffer used to hold array's contents.
1365 Byteswap all items of the array.
1367 If the items in the array are not 1, 2, 4, or 8 bytes in size, RuntimeError is
1425 Reverse the order of the items in the array.
1434 /* little buffer to hold items while swapping */
1526 Write all items (as machine values) to the file object f.
1574 Append items to array from list.
1614 Convert array to an ordinary list with the same items.
1681 Appends items from the string, interpreting it as an array of machine values, as if it had been read from a file using the fromfile() method.
1924 * type code. The items argument is a bytes or a list object from which
1931 make_array(PyTypeObject *arraytype, char typecode, PyObject *items)
1938 assert(items != NULL);
1949 Py_INCREF(items);
1951 PyTuple_SET_ITEM(new_args, 1, items);
1971 items: object
1981 PyObject *items)
2016 if (!PyBytes_Check(items)) {
2019 Py_TYPE(items)->tp_name);
2026 return make_array(arraytype, (char)typecode, items);
2034 if (Py_SIZE(items) % mformat_descriptors[mformat_code].size != 0) {
2044 Py_ssize_t itemcount = Py_SIZE(items) / 4;
2045 const char *memstr = PyBytes_AS_STRING(items);
2065 Py_ssize_t itemcount = Py_SIZE(items) / 8;
2066 const char *memstr = PyBytes_AS_STRING(items);
2086 PyBytes_AS_STRING(items), Py_SIZE(items),
2096 PyBytes_AS_STRING(items), Py_SIZE(items),
2120 Py_ssize_t itemcount = Py_SIZE(items) / mf_descr.size;
2122 (unsigned char *)PyBytes_AS_STRING(items);
2125 /* If possible, try to pack array's items using a data type
2759 Return a new array whose items are restricted by typecode, and\n\
2794 byteswap() -- byteswap all the items of the array\n\
2797 fromfile() -- read items from a file object\n\
2798 fromlist() -- append items from the list\n\
2799 frombytes() -- append items from the string\n\
2804 reverse() -- reverse the order of the items in the array\n\
2805 tofile() -- write all items to a file object\n\