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

Method __len__

Lib/dbm/sqlite3.py:88–91  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

86 raise error(str(exc))
87
88 def __len__(self):
89 with self._execute(GET_SIZE) as cu:
90 row = cu.fetchone()
91 return row[0]
92
93 def __getitem__(self, key):
94 with self._execute(LOOKUP_KEY, (key,)) as cu:

Callers

nothing calls this directly

Calls 1

_executeMethod · 0.95

Tested by

no test coverage detected