MCPcopy Create free account
hub / github.com/ActiveState/code / copy

Method copy

recipes/Python/577664_Counter_class/recipe-577664.py:93–95  ·  view source on GitHub ↗

Like dict.copy() but returns a Counter instance instead of a dict.

(self)

Source from the content-addressed store, hash-verified

91 self.update(kwds)
92
93 def copy(self):
94 'Like dict.copy() but returns a Counter instance instead of a dict.'
95 return Counter(self)
96
97 def __delitem__(self, elem):
98 'Like dict.__delitem__() but does not raise KeyError for missing values.'

Callers 10

recipe-577653.pyFile · 0.45
__init__Method · 0.45
create_styleFunction · 0.45
updated_styleFunction · 0.45
__new__Method · 0.45
nextMethod · 0.45
aliasedFunction · 0.45
__init__Method · 0.45
net_copyMethod · 0.45
net_copy_backMethod · 0.45

Calls 1

CounterClass · 0.70

Tested by

no test coverage detected