title: Get list of elements currently in heap using heapq in Python ?
body: <p>This structure i have built for easier understanding and usability</p>
  
  <pre><code>    class PriorityQueue:
  """
    Implements a priority queue data structure.
  """
  def  __init__(self):
      self.heap = []
      self.count = 0
  
  def push(self, item, priority):
      entry = (priority, self.count, item)
      heapq.heappush(self.heap, entry)
      self.count += 1
  
  def pop(self):
      (_, _, item) = heapq.heappop(self.heap)
      return item
  
  def isEmpty(self):
      return len(self.heap) == 0
  </code></pre>
  
  <p><strong>I want to add a method which will return the list of items currently in this class such that it returns the list elements without the cost without actually popping each and every item</strong></p>
  
  <p>Is there any such way or i have to extract each element</p>