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

Method iterkeys

Lib/mailbox.py:455–463  ·  view source on GitHub ↗

Return an iterator over keys.

(self)

Source from the content-addressed store, hash-verified

453 self.set_flags(key, ''.join(set(self.get_flags(key)) - set(flag)))
454
455 def iterkeys(self):
456 """Return an iterator over keys."""
457 self._refresh()
458 for key in self._toc:
459 try:
460 self._lookup(key)
461 except KeyError:
462 continue
463 yield key
464
465 def __contains__(self, key):
466 """Return True if the keyed message exists, False otherwise."""

Callers 1

nextMethod · 0.95

Calls 2

_refreshMethod · 0.95
_lookupMethod · 0.95

Tested by

no test coverage detected