MCPcopy Index your code
hub / github.com/python/cpython / __getitem__

Method __getitem__

Lib/dbm/sqlite3.py:93–98  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

91 return row[0]
92
93 def __getitem__(self, key):
94 with self._execute(LOOKUP_KEY, (key,)) as cu:
95 row = cu.fetchone()
96 if not row:
97 raise KeyError(key)
98 return row[0]
99
100 def __setitem__(self, key, value):
101 self._execute(STORE_KV, (key, value))

Callers

nothing calls this directly

Calls 1

_executeMethod · 0.95

Tested by

no test coverage detected