MCPcopy Create free account
hub / github.com/Jack-Lee-Hiter/AlgorithmsByPython / __setitem__

Method __setitem__

Hash.py:82–83  ·  view source on GitHub ↗
(self, key, data)

Source from the content-addressed store, hash-verified

80 return self.get(key)
81
82 def __setitem__(self, key, data):
83 self.put(key, data)
84
85H = HashTable()
86H[54] = 'cat'

Callers

nothing calls this directly

Calls 1

putMethod · 0.95

Tested by

no test coverage detected