Searched refs:heappushpop (Results 1 – 4 of 4) sorted by relevance
/third_party/python/Lib/test/ |
D | test_heapq.py | 134 self.module.heappushpop(heap, item) 136 self.assertEqual(self.module.heappushpop([], 'x'), 'x') 140 x = self.module.heappushpop(h, 10) 144 x = self.module.heappushpop(h, 10.0) 150 x = self.module.heappushpop(h, 9) 154 x = self.module.heappushpop(h, 11) 446 self.assertRaises(IndexError, self.module.heappushpop, heap, 1)
|
/third_party/python/Lib/ |
D | heapq.py | 161 def heappushpop(heap, item): function
|
/third_party/python/Doc/library/ |
D | heapq.rst | 55 .. function:: heappushpop(heap, item) 78 desired, consider using :func:`heappushpop` instead. Its push/pop
|
/third_party/python/Doc/whatsnew/ |
D | 2.6.rst | 1983 Another new function, ``heappushpop(heap, item)``,
|