original_docstring: Maxheap version of a heappop.
docstring: Maxheap version of a heappop.
docstring_tokens: Maxheap version of a heappop .
code: def _heappop_max(heap):
      """Maxheap version of a heappop."""
      last_element = heap.pop()    # raises appropriate IndexError if heap is empty
      if heap:
          returnitem = heap[0]
          heap[0] = last_element
          _siftup_max(heap, 0)
          return returnitem
      return last_element
code_tokens: def _heappop_max ( heap ) : last_element = heap . pop ( ) if heap : returnitem = heap [ 0 ] heap [ 0 ] = last_element _siftup_max ( heap , 0 ) return returnitem return last_element
short_docstring: Maxheap version of a heappop.
short_docstring_tokens: Maxheap version of a heappop .
comment: """Maxheap version of a heappop."""$SEP$# raises appropriate IndexError if heap is empty