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

Method remove

recipes/Python/440656_List_mixin/recipe-440656.py:182–187  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

180 return ans
181
182 def remove(self, x):
183 for i in xrange(len(self)):
184 if self._get_element(i) == x:
185 del self[i]
186 return
187 raise ValueError('remove(x): x not in list')
188
189 # Define sort() as appropriate for the Python version.
190 if sys.version_info[:3] < (2, 4, 0):

Callers 7

gameFunction · 0.45
get_actionFunction · 0.45
__str__Method · 0.45
displayMethod · 0.45
didCancelBuildMethod · 0.45
recipe-440636.pyFile · 0.45
threadRunMethod · 0.45

Calls 2

xrangeClass · 0.85
_get_elementMethod · 0.45

Tested by

no test coverage detected