MCPcopy Index your code
hub / github.com/RustPython/RustPython / __len__

Method __len__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

_executeMethod · 0.95
fetchoneMethod · 0.80

Tested by

no test coverage detected