MCPcopy Index your code
hub / github.com/clips/pattern / __delitem__

Method __delitem__

pattern/vector/__init__.py:894–898  ·  view source on GitHub ↗
(self, i)

Source from the content-addressed store, hash-verified

892 def __getitem__(self, i):
893 return self.documents.__getitem__(i)
894 def __delitem__(self, i):
895 d = list.pop(self.documents, i)
896 d._model = None
897 self._index.pop(d.name, None)
898 self._update()
899 def clear(self):
900 self._documents = readonlylist()
901 self._update()

Callers 3

removeMethod · 0.95
countFunction · 0.45
character_ngramsFunction · 0.45

Calls 2

_updateMethod · 0.95
popMethod · 0.45

Tested by

no test coverage detected