parameters: (self, other)
return_statement: return NotImplemented
docstring: Add a date to a timedelta.
docstring_summary: Add a date to a timedelta.
docstring_tokens: Add a date to a timedelta .
function: 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
function_tokens: 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