MCPcopy 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

itemsMethod · 0.95

Tested by

no test coverage detected