Home
last modified time | relevance | path

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

/external/python/cpython3/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
/external/python/cpython3/Modules/
D_heapqmodule.c126 PyObject *lastelt, *returnitem; in heappop_internal() local
141 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()
/external/python/cpython2/Modules/
D_heapqmodule.c148 PyObject *lastelt, *returnitem; in heappop() local
163 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()
/external/python/cpython2/Lib/
Dheapq.py147 lastelt = heap.pop() # raises appropriate IndexError if heap is empty
150 heap[0] = lastelt
153 returnitem = lastelt