Lines Matching defs:list
603 PyObject *list;
607 list = PyList_New(len);
608 if (list == NULL)
611 PyList_SET_ITEM(list, j, self->data[i]);
614 return list;
1986 memoization disabled). If the nesting of a list or dict object exceed
1988 reference to the seen list or dict objects and check whether these objects
2874 * empty list, or list-like object, for the APPENDS to operate on.
2891 iterator interface and fetching objects directly from list using
2983 * support for list subclasses). Like batch_list(), we batch up chunks of
2986 * empty list, or list-like object, for the APPENDS to operate on.
3054 /* Create an empty list. */
3068 /* Get list length, and bow out early if empty. */
3076 /* Materialize the list elements. */
5712 PyObject *list;
5714 if ((list = PyList_New(0)) == NULL)
5716 PDATA_PUSH(self->stack, list, -1);
5745 PyObject *list;
5751 list = Pdata_poplist(self->stack, i);
5752 if (list == NULL)
5754 PDATA_PUSH(self->stack, list, -1);
6446 PyObject *list;
6456 list = self->stack->data[x - 1];
6458 if (PyList_CheckExact(list)) {
6465 list_len = PyList_GET_SIZE(list);
6466 ret = PyList_SetSlice(list, list_len, list_len, slice);
6473 if (_PyObject_LookupAttr(list, &_Py_ID(extend), &extend_func) < 0) {
6494 append_func = PyObject_GetAttr(list, &_Py_ID(append));