Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_heapq.py133 self.module.heappushpop(heap, item)
135 self.assertEqual(self.module.heappushpop([], 'x'), 'x')
139 x = self.module.heappushpop(h, 10)
143 x = self.module.heappushpop(h, 10.0)
149 x = self.module.heappushpop(h, 9)
153 x = self.module.heappushpop(h, 11)
445 self.assertRaises(IndexError, self.module.heappushpop, heap, 1)
/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/cpython3/Lib/
Dheapq.py161 def heappushpop(heap, item): function
/external/python/cpython2/Doc/library/
Dheapq.rst55 .. function:: heappushpop(heap, item)
79 desired, consider using :func:`heappushpop` instead. Its push/pop
/external/python/cpython3/Doc/library/
Dheapq.rst55 .. function:: heappushpop(heap, item)
78 desired, consider using :func:`heappushpop` instead. Its push/pop
/external/python/cpython2/Misc/NEWS.d/
D2.6a1.rst1335 Add heapq.heappushpop().
/external/python/cpython2/Doc/whatsnew/
D2.6.rst1979 Another new function, ``heappushpop(heap, item)``,
/external/python/cpython3/Doc/whatsnew/
D2.6.rst1983 Another new function, ``heappushpop(heap, item)``,