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

Method iterkeys

Lib/mailbox.py:1143–1146  ·  view source on GitHub ↗

Return an iterator over keys.

(self)

Source from the content-addressed store, hash-verified

1141 return _ProxyFile(f)
1142
1143 def iterkeys(self):
1144 """Return an iterator over keys."""
1145 return iter(sorted(int(entry) for entry in os.listdir(self._path)
1146 if entry.isdigit()))
1147
1148 def __contains__(self, key):
1149 """Return True if the keyed message exists, False otherwise."""

Callers 2

__len__Method · 0.95
packMethod · 0.95

Calls 2

listdirMethod · 0.80
isdigitMethod · 0.80

Tested by

no test coverage detected