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

Method __iter__

Lib/mailbox.py:2039–2042  ·  view source on GitHub ↗

Iterate over lines.

(self)

Source from the content-addressed store, hash-verified

2037 return result
2038
2039 def __iter__(self):
2040 """Iterate over lines."""
2041 while line := self.readline():
2042 yield line
2043
2044 def tell(self):
2045 """Return the position."""

Callers

nothing calls this directly

Calls 1

readlineMethod · 0.95

Tested by

no test coverage detected