(self, other)
return NotImplemented
Add a date to a timedelta.
Add a date to a timedelta.
Add a date to a timedelta .
def __add__(self, other):
        "Add a date to a timedelta."
        if isinstance(other, timedelta):
            o = self.toordinal() + other.days
            if 0 < o <= _MAXORDINAL:
                return type(self).fromordinal(o)
            raise OverflowError("result out of range")
        return NotImplemented
def __add__ ( self , other ) : if isinstance ( other , timedelta ) : o = self . toordinal ( ) + other . days if 0 < o <= _MAXORDINAL : return type ( self ) . fromordinal ( o ) raise OverflowError ( "result out of range" ) return NotImplemented