Searched refs:heappushpop (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_heapq.py | 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/ |
D | heapq.py | 172 def heappushpop(heap, item): function 215 _heappushpop = heappushpop
|
/external/python/cpython2/Modules/ |
D | _heapqmodule.c | 221 heappushpop(PyObject *self, PyObject *args) in heappushpop() function 551 {"heappushpop", (PyCFunction)heappushpop,
|
/external/python/cpython2/Doc/library/ |
D | heapq.rst | 55 .. function:: heappushpop(heap, item) 79 desired, consider using :func:`heappushpop` instead. Its push/pop
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.6.rst | 1979 Another new function, ``heappushpop(heap, item)``,
|
/external/python/cpython2/Misc/ |
D | NEWS | 10885 - Patch #2274: Add heapq.heappushpop().
|