Overview

Priority queues.

Quick Example

  heapq.heappush(h, item)
  

When to Use

Use this module when you need built-in support without adding third-party dependencies.

Common Tasks

See Also