heapq « Buildin Module « Python Tutorial






14.6.heapq
14.6.1.heap is a kind of priority queue.
14.6.2.pop element from heap