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

Method __len__

Lib/mailbox.py:1145–1147  ·  view source on GitHub ↗

Return a count of messages in the mailbox.

(self)

Source from the content-addressed store, hash-verified

1143 return os.path.exists(os.path.join(self._path, str(key)))
1144
1145 def __len__(self):
1146 """Return a count of messages in the mailbox."""
1147 return len(list(self.iterkeys()))
1148
1149 def _open_mh_sequences_file(self, text):
1150 mode = '' if text else 'b'

Callers

nothing calls this directly

Calls 3

iterkeysMethod · 0.95
lenFunction · 0.85
listClass · 0.85

Tested by

no test coverage detected