parameters: (self, key, default=None)
docstring: Set `default` if the key is not in the cache otherwise
          leave unchanged. Return the value of this key.
docstring_summary: Set `default` if the key is not in the cache otherwise
          leave unchanged. Return the value of this key.
docstring_tokens: Set default if the key is not in the cache otherwise leave unchanged . Return the value of this key .
function: def setdefault(self, key, default=None):
          """Set `default` if the key is not in the cache otherwise
          leave unchanged. Return the value of this key.
          """
          self._wlock.acquire()
          try:
              try:
                  return self[key]
              except KeyError:
                  self[key] = default
                  return default
          finally:
              self._wlock.release()
function_tokens: def setdefault ( self , key , default = None ) : self . _wlock . acquire ( ) try : try : return self [ key ] except KeyError : self [ key ] = default return default finally : self . _wlock . release ( )