def clear(self):
        """clear(): clears the items of the heap."""
        del self._heap[:]
        if self._key is not None:
            self._itemid = 0
clear(): clears the items of the heap.
recipes/Python/502295_Heap_a_heapq_wrapper_class/recipe-502295.py