Lines Matching defs:update
215 update = __update = _collections_abc.MutableMapping.update
314 self.update(other)
321 new.update(other)
328 new.update(self)
552 >>> for elem in 'shazam': # update counts from an iterable
561 >>> c.update(d) # add in the second counter
597 self.update(iterable, **kwds)
658 def update(self, iterable=None, /, **kwds):
659 '''Like dict.update() but add counts instead of replacing them.
664 >>> c.update('witch') # add elements from another iterable
666 >>> c.update(d) # add elements from another counter
671 # The regular dict.update() operation makes no sense here because the
686 super().update(iterable)
690 self.update(kwds)
693 '''Like dict.update() but subtracts counts instead of replacing them.
1015 d.update(dict.fromkeys(mapping)) # reuses stored hash values if possible
1042 Keyword arguments update the map or new empty dict.
1047 m.update(kwargs)
1083 self.maps[0].update(other)
1090 m.maps[0].update(other)
1098 m.update(child)
1112 self.update(dict)
1114 self.update(kwargs)
1166 inst.__dict__.update(self.__dict__)
1181 c.update(self)
1283 inst.__dict__.update(self.__dict__)