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

Method contains

recipes/Python/577898_23_Tree/recipe-577898.py:418–421  ·  view source on GitHub ↗

See if we have a given value in our tree

(self, a)

Source from the content-addressed store, hash-verified

416 # interface methods
417
418 def contains(self, a):
419 """ See if we have a given value in our tree """
420 node = self.findNode(a)
421 return node if node.contains(a) else None
422
423 def findNode(self, a):
424 """ Find the node which contains the given value """

Callers

nothing calls this directly

Calls 2

findNodeMethod · 0.95
containsMethod · 0.45

Tested by

no test coverage detected