Lines Matching defs:item

444     PyObject *item;
449 item = PyList_GET_ITEM(a, i);
450 Py_INCREF(item);
451 cmp = PyObject_RichCompareBool(item, el, Py_EQ);
452 Py_DECREF(item);
608 PyObject **item = a->ob_item;
609 if (item != NULL) {
617 Py_XDECREF(item[i]);
619 PyMem_Free(item);
644 PyObject **item;
689 item = a->ob_item;
692 /* If norig == 0, item might be NULL, in which case we may not memcpy from it. */
701 memcpy(recycle, &item[ilow], s);
707 memmove(&item[ihigh+d], &item[ihigh], tail);
709 memmove(&item[ihigh], &item[ihigh+d], tail);
710 memcpy(&item[ilow], recycle, s);
713 item = a->ob_item;
719 item = a->ob_item;
720 memmove(&item[ihigh+d], &item[ihigh],
726 item[ilow] = w;
966 PyObject *item = iternext(it);
967 if (item == NULL) {
978 PyList_SET_ITEM(self, Py_SIZE(self), item);
982 if (_PyList_AppendTakeRef(self, item) < 0)
1026 Remove and return item at index (default last).
2261 If a key function is given, apply it once to each list item and sort them,
2751 /* We have an item that differs -- shortcuts for EQ/NE */
2759 /* Compare the final item again using the proper operator */
2876 list_subscript(PyListObject* self, PyObject* item)
2878 if (_PyIndex_Check(item)) {
2880 i = PyNumber_AsSsize_t(item, PyExc_IndexError);
2887 else if (PySlice_Check(item)) {
2894 if (PySlice_Unpack(item, &start, &stop, &step) < 0) {
2925 Py_TYPE(item)->tp_name);
2931 list_ass_subscript(PyListObject* self, PyObject* item, PyObject* value)
2933 if (_PyIndex_Check(item)) {
2934 Py_ssize_t i = PyNumber_AsSsize_t(item, PyExc_IndexError);
2941 else if (PySlice_Check(item)) {
2944 if (PySlice_Unpack(item, &start, &stop, &step) < 0) {
2985 items for each item that is part of the slice,
3088 Py_TYPE(item)->tp_name);
3243 PyObject *item;
3252 item = PyList_GET_ITEM(seq, it->it_index);
3254 Py_INCREF(item);
3255 return item;
3393 PyObject *item;
3406 item = PyList_GET_ITEM(seq, index);
3408 Py_INCREF(item);
3409 return item;