Possible Duplicate:
What do I use for a max-heap implementation in Python?
I am trying to implement in some way the heapq of python but for a max-heap. A solution is using the (-1) and multiple with numbers of the queue but that doesn't help me as I need to store urls in the heap. So i want a max heapq where i can pop the largest value.
Wrap the objects in a reverse-comparing wrapper:
Usage: