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

Method __contains__

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

Return True if the keyed message exists, False otherwise.

(self, key)

Source from the content-addressed store, hash-verified

406 yield key
407
408 def __contains__(self, key):
409 """Return True if the keyed message exists, False otherwise."""
410 self._refresh()
411 return key in self._toc
412
413 def __len__(self):
414 """Return a count of messages in the mailbox."""

Callers

nothing calls this directly

Calls 1

_refreshMethod · 0.95

Tested by

no test coverage detected