Python stdlib module — heapq. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.heappop()Neutralheappop(heap)
Pop the smallest item off the heap, maintaining the heap invariant.
.heappush()Neutralheappush(heap, item)
Push item onto heap, maintaining the heap invariant.
.heappushpop()Neutralheappushpop(heap, item)
Push item on the heap, then pop and return the smallest item from the heap.
.heapreplace()Neutralheapreplace(heap, item)
Pop and return the current smallest value, and add the new item.
.merge()Neutralmerge(iterables, key, reverse)
Merge multiple sorted inputs into a single sorted output.
| FQN | Field | |
|---|---|---|
| heapq | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
import heapq