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

Method iterkeys

Lib/mailbox.py:448–456  ·  view source on GitHub ↗

Return an iterator over keys.

(self)

Source from the content-addressed store, hash-verified

446 self.set_flags(key, ''.join(set(self.get_flags(key)) - set(flag)))
447
448 def iterkeys(self):
449 """Return an iterator over keys."""
450 self._refresh()
451 for key in self._toc:
452 try:
453 self._lookup(key)
454 except KeyError:
455 continue
456 yield key
457
458 def __contains__(self, key):
459 """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