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

Method iterkeys

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

Return an iterator over keys.

(self)

Source from the content-addressed store, hash-verified

1078 return _ProxyFile(f)
1079
1080 def iterkeys(self):
1081 """Return an iterator over keys."""
1082 return iter(sorted(int(entry) for entry in os.listdir(self._path)
1083 if entry.isdigit()))
1084
1085 def __contains__(self, key):
1086 """Return True if the keyed message exists, False otherwise."""

Callers 2

__len__Method · 0.95
packMethod · 0.95

Calls 3

sortedFunction · 0.85
listdirMethod · 0.80
isdigitMethod · 0.80

Tested by

no test coverage detected