Searched refs:heappushpop (Results 1 - 6 of 6) sorted by relevance
/external/python/cpython2/Lib/test/ |
H A D | test_heapq.py | 14 func_names = ['heapify', 'heappop', 'heappush', 'heappushpop', 115 self.module.heappushpop(heap, item) 117 self.assertEqual(self.module.heappushpop([], 'x'), 'x') 121 x = self.module.heappushpop(h, 10) 125 x = self.module.heappushpop(h, 10.0) 131 x = self.module.heappushpop(h, 9) 135 x = self.module.heappushpop(h, 11)
|
/external/python/cpython3/Lib/test/ |
H A D | test_heapq.py | 15 func_names = ['heapify', 'heappop', 'heappush', 'heappushpop', 'heapreplace', 115 self.module.heappushpop(heap, item) 117 self.assertEqual(self.module.heappushpop([], 'x'), 'x') 121 x = self.module.heappushpop(h, 10) 125 x = self.module.heappushpop(h, 10.0) 131 x = self.module.heappushpop(h, 9) 135 x = self.module.heappushpop(h, 11)
|
/external/python/cpython2/Lib/ |
H A D | heapq.py | 130 'nlargest', 'nsmallest', 'heappushpop'] 172 def heappushpop(heap, item): function 215 _heappushpop = heappushpop
|
/external/python/cpython2/Modules/ |
H A D | _heapqmodule.c | 221 heappushpop(PyObject *self, PyObject *args) function 226 if (!PyArg_UnpackTuple(args, "heappushpop", 2, 2, &heap, &item)) 263 "heappushpop(heap, item) -> value. Push item on the heap, then pop and return the smallest item\n\ 551 {"heappushpop", (PyCFunction)heappushpop,
|
/external/python/cpython3/Modules/ |
H A D | _heapqmodule.c | 214 heappushpop(PyObject *self, PyObject *args) function 219 if (!PyArg_UnpackTuple(args, "heappushpop", 2, 2, &heap, &item)) 256 "heappushpop(heap, item) -> value. Push item on the heap, then pop and return the smallest item\n\ 480 {"heappushpop", (PyCFunction)heappushpop,
|
/external/python/cpython3/Lib/ |
H A D | heapq.py | 128 'nlargest', 'nsmallest', 'heappushpop'] 161 def heappushpop(heap, item): function
|
Completed in 172 milliseconds