Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/
D_heapqmodule.c126 PyObject *lastelt, *returnitem; in heappop_internal() local
151 returnitem = PyList_GET_ITEM(heap, 0); in heappop_internal()
154 Py_DECREF(returnitem); in heappop_internal()
157 return returnitem; in heappop_internal()
172 PyObject *heap, *item, *returnitem; in heapreplace_internal() local
187 returnitem = PyList_GET_ITEM(heap, 0); in heapreplace_internal()
191 Py_DECREF(returnitem); in heapreplace_internal()
194 return returnitem; in heapreplace_internal()
216 PyObject *heap, *item, *returnitem; in heappushpop() local
245 returnitem = PyList_GET_ITEM(heap, 0); in heappushpop()
[all …]
/external/python/cpython2/Modules/
D_heapqmodule.c148 PyObject *lastelt, *returnitem; in heappop() local
170 returnitem = PyList_GET_ITEM(heap, 0); in heappop()
173 Py_DECREF(returnitem); in heappop()
176 return returnitem; in heappop()
185 PyObject *heap, *item, *returnitem; in heapreplace() local
200 returnitem = PyList_GET_ITEM(heap, 0); in heapreplace()
204 Py_DECREF(returnitem); in heapreplace()
207 return returnitem; in heapreplace()
223 PyObject *heap, *item, *returnitem; in heappushpop() local
252 returnitem = PyList_GET_ITEM(heap, 0); in heappushpop()
[all …]
/external/python/cpython3/Lib/
Dheapq.py139 returnitem = heap[0]
142 return returnitem
156 returnitem = heap[0] # raises appropriate IndexError if heap is empty
159 return returnitem
183 returnitem = heap[0]
186 return returnitem
191 returnitem = heap[0] # raises appropriate IndexError if heap is empty
194 return returnitem
/external/python/cpython2/Lib/
Dheapq.py149 returnitem = heap[0]
153 returnitem = lastelt
154 return returnitem
167 returnitem = heap[0] # raises appropriate IndexError if heap is empty
170 return returnitem