Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ __iter__
Method
__iter__
Lib/mailbox.py:2032–2035 ·
view source on GitHub ↗
Iterate over lines.
(self)
Source
from the content-addressed store, hash-verified
2030
return
result
2031
2032
def
__iter__(self):
2033
""
"Iterate over lines."
""
2034
while
line := self.readline():
2035
yield
line
2036
2037
def
tell(self):
2038
""
"Return the position."
""
Callers
nothing calls this directly
Calls
1
readline
Method · 0.95
Tested by
no test coverage detected