MCPcopy Index your code
hub / github.com/python/cpython / __len__

Method __len__

Lib/mailbox.py:694–697  ·  view source on GitHub ↗

Return a count of messages in the mailbox.

(self)

Source from the content-addressed store, hash-verified

692 return key in self._toc
693
694 def __len__(self):
695 """Return a count of messages in the mailbox."""
696 self._lookup()
697 return len(self._toc)
698
699 def lock(self):
700 """Lock the mailbox."""

Callers

nothing calls this directly

Calls 1

_lookupMethod · 0.95

Tested by

no test coverage detected