def pushes(self, lst):
        """Add all elements in lst to priority queue"""
        pos = len(self)
        self._a += lst
        for leaf in range(pos, len(self._a)):
            self._bubbleup(leaf, self._a[leaf])
Add all elements in lst to priority queue
recipes/Python/81693_Heapbased_priority_queue/recipe-81693.py