Lines Matching refs:PyListObject
25 list_resize(PyListObject *self, Py_ssize_t newsize) in list_resize()
97 static PyListObject *free_list[PyList_MAXFREELIST];
103 PyListObject *op; in PyList_Fini()
115 PyListObject *op; in PyList_New()
142 op = PyObject_GC_New(PyListObject, &PyList_Type); in PyList_New()
195 return ((PyListObject *)op) -> ob_item[i]; in PyList_GetItem()
215 p = ((PyListObject *)op) -> ob_item + i; in PyList_SetItem()
223 ins1(PyListObject *self, Py_ssize_t where, PyObject *v) in ins1()
262 return ins1((PyListObject *)op, where, newitem); in PyList_Insert()
266 app1(PyListObject *self, PyObject *v) in app1()
289 return app1((PyListObject *)op, newitem); in PyList_Append()
297 list_dealloc(PyListObject *op) in list_dealloc()
321 list_print(PyListObject *op, FILE *fp, int flags) in list_print()
362 list_repr(PyListObject *v) in list_repr()
429 list_length(PyListObject *a) in list_length()
435 list_contains(PyListObject *a, PyObject *el) in list_contains()
447 list_item(PyListObject *a, Py_ssize_t i) in list_item()
464 list_slice(PyListObject *a, Py_ssize_t ilow, Py_ssize_t ihigh) in list_slice()
466 PyListObject *np; in list_slice()
478 np = (PyListObject *) PyList_New(len); in list_slice()
499 return list_slice((PyListObject *)a, ilow, ihigh); in PyList_GetSlice()
503 list_concat(PyListObject *a, PyObject *bb) in list_concat()
508 PyListObject *np; in list_concat()
515 #define b ((PyListObject *)bb) in list_concat()
519 np = (PyListObject *) PyList_New(size); in list_concat()
542 list_repeat(PyListObject *a, Py_ssize_t n) in list_repeat()
546 PyListObject *np; in list_repeat()
556 np = (PyListObject *) PyList_New(size); in list_repeat()
582 list_clear(PyListObject *a) in list_clear()
611 list_ass_slice(PyListObject *a, Py_ssize_t ilow, Py_ssize_t ihigh, PyObject *v) in list_ass_slice()
630 #define b ((PyListObject *)v) in list_ass_slice()
718 return list_ass_slice((PyListObject *)a, ilow, ihigh, v); in PyList_SetSlice()
722 list_inplace_repeat(PyListObject *self, Py_ssize_t n) in list_inplace_repeat()
761 list_ass_item(PyListObject *a, Py_ssize_t i, PyObject *v) in list_ass_item()
779 listinsert(PyListObject *self, PyObject *args) in listinsert()
791 listappend(PyListObject *self, PyObject *v) in listappend()
799 listextend(PyListObject *self, PyObject *b) in listextend()
908 _PyList_Extend(PyListObject *self, PyObject *b) in _PyList_Extend()
914 list_inplace_concat(PyListObject *self, PyObject *other) in list_inplace_concat()
927 listpop(PyListObject *self, PyObject *args) in listpop()
2044 listsort(PyListObject *self, PyObject *args, PyObject *kwds) in listsort()
2222 v = listsort((PyListObject *)v, (PyObject *)NULL, (PyObject *)NULL); in PyList_Sort()
2230 listreverse(PyListObject *self) in listreverse()
2240 PyListObject *self = (PyListObject *)v; in PyList_Reverse()
2266 q = ((PyListObject *)v)->ob_item; in PyList_AsTuple()
2277 listindex(PyListObject *self, PyObject *args) in listindex()
2322 listcount(PyListObject *self, PyObject *v) in listcount()
2338 listremove(PyListObject *self, PyObject *v) in listremove()
2358 list_traverse(PyListObject *o, visitproc visit, void *arg) in list_traverse()
2370 PyListObject *vl, *wl; in list_richcompare()
2378 vl = (PyListObject *)v; in list_richcompare()
2379 wl = (PyListObject *)w; in list_richcompare()
2440 list_init(PyListObject *self, PyObject *args, PyObject *kw) in list_init()
2468 list_sizeof(PyListObject *self) in list_sizeof()
2477 static PyObject *list_reversed(PyListObject* seq, PyObject* unused);
2508 static PyObject *list_subscript(PyListObject*, PyObject*);
2545 list_subscript(PyListObject* self, PyObject* item) in list_subscript()
2579 dest = ((PyListObject *)result)->ob_item; in list_subscript()
2599 list_ass_subscript(PyListObject* self, PyObject* item, PyObject* value) in list_ass_subscript()
2698 if (self == (PyListObject*)value) { in list_ass_subscript()
2699 seq = list_slice((PyListObject*)value, 0, in list_ass_subscript()
2771 sizeof(PyListObject),
2817 PyListObject *it_seq; /* Set to NULL when iterator is exhausted */
2881 it->it_seq = (PyListObject *)seq; in list_iter()
2904 PyListObject *seq; in listiter_next()
2941 PyListObject *it_seq; /* Set to NULL when iterator is exhausted */
2944 static PyObject *list_reversed(PyListObject *, PyObject *);
2989 list_reversed(PyListObject *seq, PyObject *unused) in list_reversed()
3024 PyListObject *seq; in listreviter_next()