def __eq__(self, other):
    if (other is None):
        return False
    if (self.__class__ != other.__class__):
        return False
    if ((self.lower == other.lower) and (self.upper == other.upper)):
        return True
    return False
def __eq__(self, other):
    if (other is None):
        return False
    if (self.__class__ != other.__class__):
        return False
    if ((self.lower == other.lower) and (self.upper == other.upper)):
        return True
    return False