def overlap(self, other):
        "@return: True iff self intersects other."
        if self > other:
            other, self = self, other
        return self.end > other.start
@return: True iff self intersects other.
recipes/Python/576816_Interval/recipe-576816.py