MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __len__

Method __len__

tools/python-3.11.9-amd64/Lib/mailbox.py:413–416  ·  view source on GitHub ↗

Return a count of messages in the mailbox.

(self)

Source from the content-addressed store, hash-verified

411 return key in self._toc
412
413 def __len__(self):
414 """Return a count of messages in the mailbox."""
415 self._refresh()
416 return len(self._toc)
417
418 def flush(self):
419 """Write any pending changes to disk."""

Callers

nothing calls this directly

Calls 1

_refreshMethod · 0.95

Tested by

no test coverage detected