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

Method __len__

Lib/mailbox.py:687–690  ·  view source on GitHub ↗

Return a count of messages in the mailbox.

(self)

Source from the content-addressed store, hash-verified

685 return key in self._toc
686
687 def __len__(self):
688 """Return a count of messages in the mailbox."""
689 self._lookup()
690 return len(self._toc)
691
692 def lock(self):
693 """Lock the mailbox."""

Callers

nothing calls this directly

Calls 2

_lookupMethod · 0.95
lenFunction · 0.85

Tested by

no test coverage detected