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

Method iteritems

Lib/mailbox.py:129–136  ·  view source on GitHub ↗

Return an iterator over (key, message) tuples.

(self)

Source from the content-addressed store, hash-verified

127 return list(self.itervalues())
128
129 def iteritems(self):
130 """Return an iterator over (key, message) tuples."""
131 for key in self.iterkeys():
132 try:
133 value = self[key]
134 except KeyError:
135 continue
136 yield (key, value)
137
138 def items(self):
139 """Return a list of (key, message) tuples. Memory intensive."""

Callers 3

itemsMethod · 0.95
test_notimplementedMethod · 0.95
updateMethod · 0.45

Calls 1

iterkeysMethod · 0.95

Tested by 1

test_notimplementedMethod · 0.76