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

Method iterkeys

Lib/mailbox.py:1136–1139  ·  view source on GitHub ↗

Return an iterator over keys.

(self)

Source from the content-addressed store, hash-verified

1134 return _ProxyFile(f)
1135
1136 def iterkeys(self):
1137 """Return an iterator over keys."""
1138 return iter(sorted(int(entry) for entry in os.listdir(self._path)
1139 if entry.isdigit()))
1140
1141 def __contains__(self, key):
1142 """Return True if the keyed message exists, False otherwise."""

Callers 2

__len__Method · 0.95
packMethod · 0.95

Calls 4

iterFunction · 0.85
sortedFunction · 0.85
listdirMethod · 0.80
isdigitMethod · 0.45

Tested by

no test coverage detected