Searched defs:heappush (Results 1 - 2 of 2) sorted by relevance
/external/python/cpython2/Lib/ |
H A D | heapq.py | 13 heappush(heap, item) # pushes a new item on the heap 129 __all__ = ['heappush', 'heappop', 'heapify', 'heapreplace', 'merge', 140 def heappush(heap, item): function 159 This is more efficient than heappop() followed by heappush(), and can be 173 """Fast version of a heappush followed by a heappop.""" 191 """Maxheap version of a heappush followed by a heappop.""" 286 # Building the heap by using heappush() 1000 times instead required 478 heappush(heap, item)
|
/external/python/cpython2/Modules/ |
H A D | _heapqmodule.c | 121 heappush(PyObject *self, PyObject *args) function 125 if (!PyArg_UnpackTuple(args, "heappush", 2, 2, &heap, &item)) 143 "heappush(heap, item) -> None. Push item onto heap, maintaining the heap invariant."); 213 This is more efficient than heappop() followed by heappush(), and can be\n\ 265 heappush() followed by a separate call to heappop()."); 549 {"heappush", (PyCFunction)heappush, 577 heappush(heap, item) # pushes a new item on the heap\n\
|
Completed in 171 milliseconds