def separation(self, other):
        "@return: The distance between self and other."
        if self > other:
            other, self = self, other
        if self.end > other.start:
            return 0
        else:
            return other.start - self.end
@return: The distance between self and other.
recipes/Python/576816_Interval/recipe-576816.py