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

Method remove

pattern/vector/__init__.py:930–933  ·  view source on GitHub ↗

Removes the given Document from the model, and sets Document.model=None.

(self, document)

Source from the content-addressed store, hash-verified

928 list.extend(self.documents, documents)
929
930 def remove(self, document):
931 """ Removes the given Document from the model, and sets Document.model=None.
932 """
933 self.__delitem__(self.documents.index(document))
934
935 def document(self, name):
936 """ Returns the Document with the given name (assuming document names are unique).

Callers 1

_on_loadMethod · 0.45

Calls 2

__delitem__Method · 0.95
indexMethod · 0.45

Tested by

no test coverage detected