Lines Matching refs:list
222 PyObject* list;
227 list = PyList_New(NLIST);
228 if (list == (PyObject*)NULL)
230 /* list = range(NLIST) */
234 Py_DECREF(list);
237 PyList_SET_ITEM(list, i, anint);
239 /* list.reverse(), via PyList_Reverse() */
240 i = PyList_Reverse(list); /* should not blow up! */
242 Py_DECREF(list);
245 /* Check that list == range(29, -1, -1) now */
247 PyObject* anint = PyList_GET_ITEM(list, i);
251 Py_DECREF(list);
255 Py_DECREF(list);
1951 "parse_tuple_and_keywords: sub_keywords must be either list or tuple");
6337 settrace_to_record(PyObject *self, PyObject *list)
6340 if (!PyList_Check(list)) {
6341 PyErr_SetString(PyExc_TypeError, "argument must be a list");
6344 PyEval_SetTrace(record_func, list);
6352 /* Only raise if list is empty, otherwise append None
6365 settrace_to_error(PyObject *self, PyObject *list)
6367 if (!PyList_Check(list)) {
6368 PyErr_SetString(PyExc_TypeError, "argument must be a list");
6371 PyEval_SetTrace(error_func, list);
7147 /* Test bpo-35983: create a subclass of "list" which checks that instances
7151 PyListObject list;