Home
last modified time | relevance | path

Searched refs:lastelt (Results 1 – 2 of 2) sorted by relevance

/third_party/python/Lib/
Dheapq.py137 lastelt = heap.pop() # raises appropriate IndexError if heap is empty
140 heap[0] = lastelt
143 return lastelt
181 lastelt = heap.pop() # raises appropriate IndexError if heap is empty
184 heap[0] = lastelt
187 return lastelt
/third_party/python/Modules/
D_heapqmodule.c140 PyObject *lastelt, *returnitem; in heappop_internal() local
150 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()