Lines Matching defs:list
79 /* Head of circular doubly-linked list of all objects. These are linked
85 /* Insert op at the front of the list of all objects. If force is true,
89 * uninitialized memory, or you've unlinked op from the list and are
91 * Note that objects are normally added to the list via _Py_NewReference,
102 * the list unambiguously.
1561 "dir(): expected keys() of locals to be a list, "
1606 sorted list of attribute names (supposedly) accessible from the object
2062 "object not found in the objects list");
2162 PyObject *list;
2170 list = PyDict_GetItemWithError(dict, &_Py_ID(Py_Repr));
2171 if (list == NULL) {
2175 list = PyList_New(0);
2176 if (list == NULL)
2178 if (PyDict_SetItem(dict, &_Py_ID(Py_Repr), list) < 0)
2180 Py_DECREF(list);
2182 i = PyList_GET_SIZE(list);
2184 if (PyList_GET_ITEM(list, i) == obj)
2187 if (PyList_Append(list, obj) < 0)
2196 PyObject *list;
2206 list = PyDict_GetItemWithError(dict, &_Py_ID(Py_Repr));
2207 if (list == NULL || !PyList_Check(list))
2210 i = PyList_GET_SIZE(list);
2211 /* Count backwards because we always expect obj to be list[-1] */
2213 if (PyList_GET_ITEM(list, i) == obj) {
2214 PyList_SetSlice(list, i, i + 1, NULL);
2228 /* Add op to the gcstate->trash_delete_later list. Called when the current
2243 /* Deallocate all the objects in the gcstate->trash_delete_later list.