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

Method __len__

Lib/mailbox.py:470–473  ·  view source on GitHub ↗

Return a count of messages in the mailbox.

(self)

Source from the content-addressed store, hash-verified

468 return key in self._toc
469
470 def __len__(self):
471 """Return a count of messages in the mailbox."""
472 self._refresh()
473 return len(self._toc)
474
475 def flush(self):
476 """Write any pending changes to disk."""

Callers

nothing calls this directly

Calls 1

_refreshMethod · 0.95

Tested by

no test coverage detected