Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/clips/pattern
/ __len__
Method
__len__
pattern/db/__init__.py:889–890 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
887
return
int(list(self.db.execute(
"select count(*) from `%s`;"
% self.name))[0][0])
888
889
def
__len__(self):
890
return
self.count()
891
def
__iter__(self):
892
return
iter(self.rows())
893
def
__getitem__(self, i):
Callers
nothing calls this directly
Calls
1
count
Method · 0.95
Tested by
no test coverage detected