Home
last modified time | relevance | path

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

/third_party/python/Lib/test/
Dtest_heapq.py134 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/
Dheapq.py161 def heappushpop(heap, item): function
/third_party/python/Doc/library/
Dheapq.rst55 .. function:: heappushpop(heap, item)
78 desired, consider using :func:`heappushpop` instead. Its push/pop
/third_party/python/Doc/whatsnew/
D2.6.rst1983 Another new function, ``heappushpop(heap, item)``,