Searched refs:lastelt (Results 1 – 4 of 4) 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
126 PyObject *lastelt, *returnitem; in heappop_internal() local141 lastelt = PyList_GET_ITEM(heap, n-1) ; in heappop_internal()142 Py_INCREF(lastelt); in heappop_internal()144 Py_DECREF(lastelt); in heappop_internal()150 return lastelt; in heappop_internal()152 PyList_SET_ITEM(heap, 0, lastelt); in heappop_internal()
148 PyObject *lastelt, *returnitem; in heappop() local163 lastelt = PyList_GET_ITEM(heap, n-1) ; in heappop()164 Py_INCREF(lastelt); in heappop()169 return lastelt; in heappop()171 PyList_SET_ITEM(heap, 0, lastelt); in heappop()
147 lastelt = heap.pop() # raises appropriate IndexError if heap is empty150 heap[0] = lastelt153 returnitem = lastelt