Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __next__
Method
__next__
Lib/_pyio.py:555–559 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
553
return
self
554
555
def
__next__(self):
556
line = self.readline()
557
if
not line:
558
raise
StopIteration
559
return
line
560
561
def
readlines(self, hint=None):
562
""
"Return a list of lines
from
the stream.
Callers
nothing calls this directly
Calls
1
readline
Method · 0.95
Tested by
no test coverage detected