Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/test/
Dtest_heapq.py115 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/
Dheapq.py172 def heappushpop(heap, item): function
215 _heappushpop = heappushpop
/external/python/cpython2/Modules/
D_heapqmodule.c221 heappushpop(PyObject *self, PyObject *args) in heappushpop() function
551 {"heappushpop", (PyCFunction)heappushpop,
/external/python/cpython2/Doc/library/
Dheapq.rst55 .. function:: heappushpop(heap, item)
79 desired, consider using :func:`heappushpop` instead. Its push/pop
/external/python/cpython2/Doc/whatsnew/
D2.6.rst1979 Another new function, ``heappushpop(heap, item)``,
/external/python/cpython2/Misc/
DNEWS10885 - Patch #2274: Add heapq.heappushpop().