Exemplo n.º 1
0
    def update (self, E, **F):
        """W.update (E, **F) -> None

        Update W from E and F.

        for k in E: W[k] = E[k] (if E has keys else: for (k, v) in E:
        W[k] = v) then: for k in F: W[k] = F[k]
        """
        amount = len (self)
        IterableUserDict.update (self, E, **F)
        if self._valuechanged and (len (self) != amount):
            self._valuechanged ()
Exemplo n.º 2
0
 def update(self, dict):
     IterableUserDict.update(self, dict)
     for key in dict.keys():
         if key not in self._keys: self._keys.append(key)
Exemplo n.º 3
0
 def update(self, dict):
     IterableUserDict.update(self, dict)
     for key in dict.keys():
         if key not in self._keys:
             self._keys.append(key)
Exemplo n.º 4
0
 def update(self, dict=None, **kwargs):
     IterableUserDict.update(self, dict, **kwargs)
     self.flush()