Home
last modified time | relevance | path

Searched refs:heappop (Results 1 – 25 of 26) sorted by relevance

12

/external/python/cpython3/Lib/test/
Dtest_heapq.py43 item = self.module.heappop(heap)
55 self.assertRaises(TypeError, self.module.heappop, None)
80 self.module.heappop(heap)
88 yield self.module.heappop(heap)
150 heap_sorted = [self.module.heappop(heap) for i in range(size)]
219 return [self.module.heappop(data).x for i in range(len(data))]
354 for f in (self.module.heapify, self.module.heappop):
361 for f in (self.module.heapify, self.module.heappop):
369 for f in (self.module.heapify, self.module.heappop):
378 for f in (self.module.heapify, self.module.heappop):
[all …]
/external/python/cpython2/Lib/test/
Dtest_heapq.py43 item = self.module.heappop(heap)
55 self.assertRaises(TypeError, self.module.heappop, None)
80 self.module.heappop(heap)
88 yield self.module.heappop(heap)
150 heap_sorted = [self.module.heappop(heap) for i in range(size)]
207 return [self.module.heappop(data).x for i in range(len(data))]
341 for f in (self.module.heapify, self.module.heappop):
348 for f in (self.module.heapify, self.module.heappop):
357 for f in (self.module.heapify, self.module.heappop):
365 for f in (self.module.heapify, self.module.heappop,
[all …]
/external/python/cpython3/Lib/asyncio/
Dqueues.py233 def _get(self, heappop=heapq.heappop): argument
234 return heappop(self._queue)
Dbase_events.py1357 handle = heapq.heappop(self._scheduled)
1398 handle = heapq.heappop(self._scheduled)
/external/python/cpython2/Lib/
DQueue.py227 def _get(self, heappop=heapq.heappop): argument
228 return heappop(self.queue)
Dsched.py106 pop = heapq.heappop
134 return map(heapq.heappop, [events]*len(events))
Dheapq.py145 def heappop(heap): function
368 _heappop, _heapreplace, _StopIteration = heappop, heapreplace, StopIteration
481 sort.append(heappop(heap))
/external/python/cpython3/Lib/
Dsched.py137 pop = heapq.heappop
170 return list(map(heapq.heappop, [events]*len(events)))
Dqueue.py8 from heapq import heappush, heappop
230 return heappop(self.queue)
Dheapq.py135 def heappop(heap): function
342 _heappop = heappop
/external/autotest/site_utils/rpm_control_system/
Dfrontend_server.py258 heap_entry = heapq.heappop(self._dispatcher_minheap)
334 heapq.heappop(self._dispatcher_minheap)
/external/python/cpython3/Doc/library/
Dheapq.rst48 .. function:: heappop(heap)
59 followed by a separate call to :func:`heappop`.
72 This one step operation is more efficient than a :func:`heappop` followed by
144 ... return [heappop(h) for i in range(len(h))]
160 >>> heappop(h)
218 priority, count, task = heappop(pq)
Ditertools.rst808 iter_except(functools.partial(heappop, h), IndexError) # priority queue iterator
/external/python/cpython2/Doc/library/
Dheapq.rst49 .. function:: heappop(heap)
59 followed by a separate call to :func:`heappop`.
73 This one step operation is more efficient than a :func:`heappop` followed by
144 ... return [heappop(h) for i in range(len(h))]
160 >>> heappop(h)
219 priority, count, task = heappop(pq)
Ditertools.rst796 heapiter = iter_except(functools.partial(heappop, h), IndexError)
/external/python/cpython3/Modules/
D_heapqmodule.c161 heappop(PyObject *self, PyObject *heap) in heappop() function
482 {"heappop", (PyCFunction)heappop,
/external/python/cpython2/Modules/
D_heapqmodule.c146 heappop(PyObject *self, PyObject *heap) in heappop() function
553 {"heappop", (PyCFunction)heappop,
/external/python/cpython3/Doc/tutorial/
Dstdlib2.rst344 >>> from heapq import heapify, heappop, heappush
348 >>> [heappop(data) for i in range(3)] # fetch the three smallest entries
/external/python/cpython2/Doc/tutorial/
Dstdlib2.rst342 >>> from heapq import heapify, heappop, heappush
346 >>> [heappop(data) for i in range(3)] # fetch the three smallest entries
/external/autotest/scheduler/
Ddrone_manager.py686 drone = heapq.heappop(self._drone_queue).drone
/external/python/cpython3/Doc/whatsnew/
D2.3.rst1314 The :mod:`heapq` module provides :func:`heappush` and :func:`heappop` functions
1325 >>> heapq.heappop(heap)
1327 >>> heapq.heappop(heap)
D2.6.rst1986 :func:`heappop`.
/external/python/cpython2/Doc/whatsnew/
D2.3.rst1314 The :mod:`heapq` module provides :func:`heappush` and :func:`heappop` functions
1325 >>> heapq.heappop(heap)
1327 >>> heapq.heappop(heap)
D2.6.rst1982 :func:`heappop`.
/external/python/cpython2/Misc/
DNEWS3355 - Issue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when

12