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

Method __contains__

Lib/mailbox.py:465–468  ·  view source on GitHub ↗

Return True if the keyed message exists, False otherwise.

(self, key)

Source from the content-addressed store, hash-verified

463 yield key
464
465 def __contains__(self, key):
466 """Return True if the keyed message exists, False otherwise."""
467 self._refresh()
468 return key in self._toc
469
470 def __len__(self):
471 """Return a count of messages in the mailbox."""

Callers

nothing calls this directly

Calls 1

_refreshMethod · 0.95

Tested by

no test coverage detected