Search code examples
pythonheapheapq

Python library, what does "q" stand for in heapq?


Python has this library heapq, which we can use to perform heap operations. What does "q" stand for?


Solution

  • It literally means what it sounds like: heap queue. The doco confirms this:

    8.4. heapqHeap queue algorithm