PyDocs

Nav

Data Types

heappushpop

heapq

function
  • heappushpop(heap, item)
Push item on the heap, then pop and return the smallest item from the heap.

The combined action runs more efficiently than heappush() followed by
a separate call to heappop().
0 Examples
No examples for heapq/heappushpop.
See Also
No see-alsos for heapq/heappushpop
0 Notes
No notes for heappushpop