def intersection(self, other):
        "Intersection. @return: An empty intersection if there is none."
        if self > other:
            other, self = self, other
        if self.end <= other.start:
            return Interval(self.start, self.start)
        return Interval(other.start, self.end)
Intersection. @return: An empty intersection if there is none.
recipes/Python/576816_Interval/recipe-576816.py