def pop(self):
        """Remove and return the rightmost element."""
        element = self._end.prev.content
        self.remove(element)
        return element
Remove and return the rightmost element.
recipes/Python/528878_Ordered_Set/recipe-528878.py