Lines Matching defs:update
70 link_prev[1] = link_next # update link_prev[NEXT]
71 link_next[0] = link_prev # update link_next[PREV]
126 update = MutableMapping.update
128 __update = update # let subclasses override update without breaking __init__
399 >>> for elem in 'shazam': # update counts from an iterable
408 >>> c.update(d) # add in the second counter
444 self.update(iterable, **kwds)
495 def update(self, iterable=None, **kwds):
496 '''Like dict.update() but add counts instead of replacing them.
501 >>> c.update('witch') # add elements from another iterable
503 >>> c.update(d) # add elements from another counter
508 # The regular dict.update() operation makes no sense here because the
522 super(Counter, self).update(iterable) # fast path when counter is empty
528 self.update(kwds)
531 '''Like dict.update() but subtracts counts instead of replacing them.