parameters: (seconds)
docstring: Create only one instance of each distinct timedelta
docstring_summary: Create only one instance of each distinct timedelta
docstring_tokens: Create only one instance of each distinct timedelta
function: def memorized_timedelta(seconds):
      '''Create only one instance of each distinct timedelta'''
      try:
          return _timedelta_cache[seconds]
      except KeyError:
          delta = timedelta(seconds=seconds)
          _timedelta_cache[seconds] = delta
          return delta
function_tokens: def memorized_timedelta ( seconds ) : try : return _timedelta_cache [ seconds ] except KeyError : delta = timedelta ( seconds = seconds ) _timedelta_cache [ seconds ] = delta return delta