title: Removing an item from a priority queue
body: <p>In Python, the <a href="http://docs.python.org/library/heapq.html" rel="noreferrer"><code>heapq</code></a> module provides a priority queue.</p>
  
  <p>It has methods for inserting and popping items.</p>
  
  <p>How do you remove an item that you have inserted that is not the lowest priority from the queue?</p>
  
  <p>(Alternative recipes for doing this using alternative other collections are welcome too)</p>