def hull(self, other):
        "@return: Interval containing both self and other."
        if self > other:
            other, self = self, other
        return Interval(self.start, other.end)
@return: Interval containing both self and other.
recipes/Python/576816_Interval/recipe-576816.py