Lines Matching defs:list
3 /* An array is a uniform list -- all items have the same type.
82 * array type code cannot be interpreted. When this occurs, a list of
1571 list: object
1574 Append items to array from list.
1578 array_array_fromlist(arrayobject *self, PyObject *list)
1583 if (!PyList_Check(list)) {
1584 PyErr_SetString(PyExc_TypeError, "arg must be list");
1587 n = PyList_Size(list);
1594 PyObject *v = PyList_GET_ITEM(list, i);
1600 if (n != PyList_GET_SIZE(list)) {
1602 "list changed size during iteration");
1614 Convert array to an ordinary list with the same items.
1621 PyObject *list = PyList_New(Py_SIZE(self));
1624 if (list == NULL)
1630 PyList_SET_ITEM(list, i, v);
1632 return list;
1635 Py_DECREF(list);
1924 * type code. The items argument is a bytes or a list object from which
2232 /* Convert the array to a list if we got something weird
2236 * It is necessary to use a list representation for Python 2.x
2243 PyObject *list;
2244 list = array_array_tolist_impl(self);
2245 if (list == NULL) {
2250 "O(CO)O", Py_TYPE(self), typecode, list, dict);
2251 Py_DECREF(list);
2760 initialized from the optional initializer value, which must be a list,\n\
2798 fromlist() -- append items from the list\n\
2806 tolist() -- return the array converted to an ordinary list\n\