def pop(self):
        try:
            key = heapq.heappop(self.heap)
            return self.elements[key]
        except:
            raise StopIteration
Pop an arbitrary element from the stack.
dataset/ETHPy150Open Stiivi/brewery/brewery/nodes/base.py/Stack.pop