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

Method __contains__

Lib/mailbox.py:689–692  ·  view source on GitHub ↗

Return True if the keyed message exists, False otherwise.

(self, key)

Source from the content-addressed store, hash-verified

687 yield from self._toc.keys()
688
689 def __contains__(self, key):
690 """Return True if the keyed message exists, False otherwise."""
691 self._lookup()
692 return key in self._toc
693
694 def __len__(self):
695 """Return a count of messages in the mailbox."""

Callers

nothing calls this directly

Calls 1

_lookupMethod · 0.95

Tested by

no test coverage detected