code: def setdefault (self, key, *args):
          
          if key not in self:
              self._keys.append(key)
          return super(ListDict, self).setdefault(key, *args)
docs: Remember key order if key not found.