Lines Matching defs:list
141 list_join(PyObject* list)
143 /* join list elements */
150 result = PyUnicode_Join(joiner, list);
450 /* use Python 2.4's list growth strategy */
940 /* Build a list of children. */
1005 PyErr_SetString(PyExc_TypeError, "'_children' is not a list");
1588 "list.remove(x): x not in list"
1607 "list.remove(x): x not in list"
1727 PyObject* list;
1741 list = PyList_New(slicelen);
1742 if (!list)
1749 PyList_SET_ITEM(list, i, item);
1752 return list;
1814 /* recycle is a list that will contain all the children
1830 * list end.
1856 /* Discard the recycle list with all the deleted sub-elements */
2323 PyObject *data; /* data collector (string or list), or NULL */
2333 PyObject *events_append; /* the append method of the list of events, or NULL */
2746 /* more than one item; use a list to collect items */
2760 PyObject* list = PyList_New(2);
2761 if (!list)
2763 PyList_SET_ITEM(list, 0, self->data);
2764 Py_INCREF(data); PyList_SET_ITEM(list, 1, data);
2765 self->data = list;