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

Method __getitem__

pattern/web/cache/__init__.py:92–93  ·  view source on GitHub ↗
(self, k)

Source from the content-addressed store, hash-verified

90 return os.path.exists(self._hash(k))
91
92 def __getitem__(self, k):
93 return self.get(k)
94
95 def __setitem__(self, k, v):
96 f = open(self._hash(k), "wb")

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected