def __init__(self, max_items):
        """Construct an instance of the BoundedSet."""
        self.max_items = max_items
        self._fifo = []
        self._set = set()
Construct an instance of the BoundedSet.
rtv/packages/praw/helpers.py