Package schrodinger :: Package job :: Module queue :: Class PriorityQueue
[hide private]
[frames] | no frames]

Class PriorityQueue

This is a general priority queue.

Instance Methods [hide private]
 
__init__(self)
 
__len__(self)
 
__iter__(self)
Note that this method is only meant to provide access to the items in the queue, and that it does not return them in sorted order.
 
push(self, item)
Add an item to the heap.
 
pop(self)
Get the highest priority item, removing it from the heap.
Method Details [hide private]

push(self, item)

 

Add an item to the heap. This item must have a __lt__ method as per the heapq module requirement.