Searched refs:heappushpop (Results 1 - 6 of 6) sorted by relevance

/external/python/cpython2/Lib/test/
H A Dtest_heapq.py14 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 Dtest_heapq.py15 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 Dheapq.py130 'nlargest', 'nsmallest', 'heappushpop']
172 def heappushpop(heap, item): function
215 _heappushpop = heappushpop
/external/python/cpython2/Modules/
H A D_heapqmodule.c221 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.c214 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 Dheapq.py128 'nlargest', 'nsmallest', 'heappushpop']
161 def heappushpop(heap, item): function

Completed in 172 milliseconds