parameters: (self, key, default=None)
return_statement: return default
docstring: D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D
docstring_summary: D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D
docstring_tokens: D . setdefault ( k [ d ] ) - > D . get ( k d ) also set D [ k ] = d if k not in D
function: def setdefault(self, key, default=None):
          'D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D'
          try:
              return self[key]
          except KeyError:
              self[key] = default
          return default
function_tokens: def setdefault ( self , key , default = None ) : try : return self [ key ] except KeyError : self [ key ] = default return default