def __contains__(self, item):
        """Return True if item is an id in self."""

        if isinstance(item, int):
            for r in self.__range:
                if item in r:
                    return True
        return False
def __contains__ ( self , item ) : if isinstance ( item , int ) : for r in self . __range : if item in r : return True return False
Return True if item is an id in self.