parameters: (self, *args, **kwargs)
docstring: update() extends rather than replaces existing key lists.
          Also accepts keyword args.
docstring_summary: update() extends rather than replaces existing key lists.
          Also accepts keyword args.
docstring_tokens: update () extends rather than replaces existing key lists . Also accepts keyword args .
function: def update(self, *args, **kwargs):
          """
          update() extends rather than replaces existing key lists.
          Also accepts keyword args.
          """
          if len(args) > 1:
              raise TypeError("update expected at most 1 arguments, got %d" % len(args))
          if args:
              other_dict = args[0]
              if isinstance(other_dict, MultiValueDict):
                  for key, value_list in other_dict.lists():
                      self.setlistdefault(key, []).extend(value_list)
              else:
                  try:
                      for key, value in other_dict.items():
                          self.setlistdefault(key, []).append(value)
                  except TypeError:
                      raise ValueError("MultiValueDict.update() takes either a MultiValueDict or dictionary")
          for key, value in kwargs.iteritems():
              self.setlistdefault(key, []).append(value)
function_tokens: def update ( self , * args , * * kwargs ) : if len ( args ) > 1 : raise TypeError ( "update expected at most 1 arguments, got %d" % len ( args ) ) if args : other_dict = args [ 0 ] if isinstance ( other_dict , MultiValueDict ) : for key , value_list in other_dict . lists ( ) : self . setlistdefault ( key , [ ] ) . extend ( value_list ) else : try : for key , value in other_dict . items ( ) : self . setlistdefault ( key , [ ] ) . append ( value ) except TypeError : raise ValueError ( "MultiValueDict.update() takes either a MultiValueDict or dictionary" ) for key , value in kwargs . iteritems ( ) : self . setlistdefault ( key , [ ] ) . append ( value )