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

Method count

recipes/Python/440656_List_mixin/recipe-440656.py:150–155  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

148 self[len(self):len(self)] = other
149
150 def count(self, other):
151 ans = 0
152 for item in self:
153 if item == other:
154 ans += 1
155 return ans
156
157 def reverse(self):
158 for i in xrange(len(self)//2):

Callers 6

__init__Method · 0.45
nextMethod · 0.45
try_adjacent_linesFunction · 0.45
_check_other_lines2Function · 0.45
try_maskingFunction · 0.45
groupsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected