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

Method __contains__

Lib/mailbox.py:682–685  ·  view source on GitHub ↗

Return True if the keyed message exists, False otherwise.

(self, key)

Source from the content-addressed store, hash-verified

680 yield from self._toc.keys()
681
682 def __contains__(self, key):
683 """Return True if the keyed message exists, False otherwise."""
684 self._lookup()
685 return key in self._toc
686
687 def __len__(self):
688 """Return a count of messages in the mailbox."""

Callers

nothing calls this directly

Calls 1

_lookupMethod · 0.95

Tested by

no test coverage detected