def __contains__(self, item):
        "@return: True iff item in self."
        return self.start <= item and item < self.end
@return: True iff item in self.
recipes/Python/576816_Interval/recipe-576816.py