• Home
  • Raw
  • Download

Lines Matching refs:ob_item

47         assert(self->ob_item != NULL || newsize == 0);  in list_resize()
72 items = (PyObject **)PyMem_Realloc(self->ob_item, num_allocated_bytes); in list_resize()
77 self->ob_item = items; in list_resize()
86 assert(self->ob_item == NULL); in list_preallocate_exact()
94 self->ob_item = items; in list_preallocate_exact()
151 op->ob_item = NULL; in PyList_New()
153 op->ob_item = (PyObject **) PyMem_Calloc(size, sizeof(PyObject *)); in PyList_New()
154 if (op->ob_item == NULL) { in PyList_New()
172 assert(op->ob_item == NULL); in list_new_prealloc()
173 op->ob_item = PyMem_New(PyObject *, size); in list_new_prealloc()
174 if (op->ob_item == NULL) { in list_new_prealloc()
225 return ((PyListObject *)op) -> ob_item[i]; in PyList_GetItem()
244 p = ((PyListObject *)op) -> ob_item + i; in PyList_SetItem()
274 items = self->ob_item; in ins1()
329 if (op->ob_item != NULL) { in list_dealloc()
336 Py_XDECREF(op->ob_item[i]); in list_dealloc()
338 PyMem_FREE(op->ob_item); in list_dealloc()
379 s = PyObject_Repr(v->ob_item[i]); in list_repr()
438 Py_INCREF(a->ob_item[i]); in list_item()
439 return a->ob_item[i]; in list_item()
453 src = a->ob_item + ilow; in list_slice()
454 dest = np->ob_item; in list_slice()
507 src = a->ob_item; in list_concat()
508 dest = np->ob_item; in list_concat()
514 src = b->ob_item; in list_concat()
515 dest = np->ob_item + Py_SIZE(a); in list_concat()
546 items = np->ob_item; in list_repeat()
547 elem = a->ob_item[0]; in list_repeat()
554 p = np->ob_item; in list_repeat()
555 items = a->ob_item; in list_repeat()
572 PyObject **item = a->ob_item; in _list_clear()
578 a->ob_item = NULL; in _list_clear()
653 item = a->ob_item; in list_ass_slice()
677 item = a->ob_item; in list_ass_slice()
683 item = a->ob_item; in list_ass_slice()
740 items = self->ob_item; in list_inplace_repeat()
763 Py_SETREF(a->ob_item[i], v); in list_ass_item()
882 dest = self->ob_item + m; in list_extend()
1006 v = self->ob_item[index]; in list_pop_impl()
2140 k = PyObject_RichCompareBool(vt->ob_item[i], wt->ob_item[i], Py_EQ); in unsafe_tuple_compare()
2151 return ms->tuple_elem_compare(vt->ob_item[i], wt->ob_item[i], ms); in unsafe_tuple_compare()
2153 return PyObject_RichCompareBool(vt->ob_item[i], wt->ob_item[i], Py_LT); in unsafe_tuple_compare()
2205 saved_ob_item = self->ob_item; in list_sort_impl()
2208 self->ob_item = NULL; in list_sort_impl()
2422 final_ob_item = self->ob_item; in list_sort_impl()
2425 self->ob_item = saved_ob_item; in list_sort_impl()
2466 reverse_slice(self->ob_item, self->ob_item + Py_SIZE(self)); in list_reverse_impl()
2480 reverse_slice(self->ob_item, self->ob_item + Py_SIZE(self)); in PyList_Reverse()
2491 return _PyTuple_FromArray(((PyListObject *)v)->ob_item, Py_SIZE(v)); in PyList_AsTuple()
2525 PyObject *obj = self->ob_item[i]; in list_index_impl()
2555 PyObject *obj = self->ob_item[i]; in list_count()
2589 PyObject *obj = self->ob_item[i]; in list_remove()
2612 Py_VISIT(o->ob_item[i]); in list_traverse()
2638 PyObject *vitem = vl->ob_item[i]; in list_richcompare()
2639 PyObject *witem = wl->ob_item[i]; in list_richcompare()
2669 return PyObject_RichCompare(vl->ob_item[i], wl->ob_item[i], op); in list_richcompare()
2691 assert(self->ob_item != NULL || in list___init___impl()
2695 if (self->ob_item != NULL) { in list___init___impl()
2707 if (iter_len > 0 && self->ob_item == NULL in list___init___impl()
2833 src = self->ob_item; in list_subscript()
2834 dest = ((PyListObject *)result)->ob_item; in list_subscript()
2922 memmove(self->ob_item + cur - i, in list_ass_subscript()
2923 self->ob_item + cur + 1, in list_ass_subscript()
2928 memmove(self->ob_item + cur - slicelength, in list_ass_subscript()
2929 self->ob_item + cur, in list_ass_subscript()
2988 selfitems = self->ob_item; in list_ass_subscript()