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

Method remove

pattern/text/search.py:361–365  ·  view source on GitHub ↗
(self, term)

Source from the content-addressed store, hash-verified

359 return v
360
361 def remove(self, term):
362 if dict.__contains__(self, term):
363 for w in self.parents(term):
364 self[w][1].pop(term)
365 dict.pop(self, term)
366
367# Global taxonomy:
368TAXONOMY = taxonomy = Taxonomy()

Callers 2

__delitem__Method · 0.45
popMethod · 0.45

Calls 3

parentsMethod · 0.95
__contains__Method · 0.45
popMethod · 0.45

Tested by

no test coverage detected