MCPcopy Index your code
hub / github.com/Jack-Lee-Hiter/AlgorithmsByPython / get

Method get

AVL.py:145–153  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

143 self.put(k, v)
144
145 def get(self, key):
146 if self.root:
147 res = self._get(key, self.root)
148 if res:
149 return res.payload
150 else:
151 return None
152 else:
153 return None
154
155 def _get(self, key, currentNode):
156 if not currentNode:

Callers 1

__getitem__Method · 0.95

Calls 1

_getMethod · 0.95

Tested by

no test coverage detected