def inrevorder(self):
        """Iterator over the tree elements in max-min order."""
        if self:
            for elem in self.right.inrevorder():
                yield elem
            yield self.cargo
            for elem in self.left.inrevorder():
                yield elem
Iterator over the tree elements in max-min order.
recipes/Python/136529_Trees_and_more_trees/recipe-136529.py