code: def update(self, *args, **kwargs):
          '''Preserves order if given an assoc list.
          '''
          arg = dict_arg(*args, **kwargs)
          if isinstance(arg, list):
            for key, val in arg:
                self[key] = val
          else:
              super(AssocDict, self).update(argf update(self, *args, **kwargs):
          '''Preserves order if given an assoc list.
          '''
          arg = dict_arg(*args, **kwargs)
          if isinstance(arg, list):
            for key, val in arg:
                self[key] = val
          else:
              super(AssocDict, self).update(arg)
docs: Preserves order if given an assoc list.