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

Method __len__

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

Return a count of messages in the mailbox.

(self)

Source from the content-addressed store, hash-verified

1087 return os.path.exists(os.path.join(self._path, str(key)))
1088
1089 def __len__(self):
1090 """Return a count of messages in the mailbox."""
1091 return len(list(self.iterkeys()))
1092
1093 def lock(self):
1094 """Lock the mailbox."""

Callers

nothing calls this directly

Calls 2

iterkeysMethod · 0.95
listFunction · 0.85

Tested by

no test coverage detected