Searched refs:lastelt (Results 1 – 2 of 2) sorted by relevance
137 lastelt = heap.pop() # raises appropriate IndexError if heap is empty140 heap[0] = lastelt143 return lastelt181 lastelt = heap.pop() # raises appropriate IndexError if heap is empty184 heap[0] = lastelt187 return lastelt
140 PyObject *lastelt, *returnitem; in heappop_internal() local150 lastelt = PyList_GET_ITEM(heap, n-1) ; in heappop_internal()151 Py_INCREF(lastelt); in heappop_internal()153 Py_DECREF(lastelt); in heappop_internal()159 return lastelt; in heappop_internal()161 PyList_SET_ITEM(heap, 0, lastelt); in heappop_internal()