Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/MongoEngine/mongoengine
/ __len__
Method
__len__
mongoengine/base/datastructures.py:408–409 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
406
return
(key
for
key in self.__slots__
if
hasattr(self, key))
407
408
def
__len__(self):
409
return
len(list(self.items()))
410
411
def
__eq__(self, other):
412
return
list(self.items()) == list(other.items())
Callers
nothing calls this directly
Calls
1
items
Method · 0.95
Tested by
no test coverage detected