Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ readline
Method
readline
Lib/test/test_fileinput.py:66–69 ·
view source on GitHub ↗
(self, size=None)
Source
from the content-addressed store, hash-verified
64
return
self
65
66
def
readline(self, size=None):
67
line = next(self.it,
''
)
68
self._linesread.append(line)
69
return
line
70
71
def
readlines(self, hint=-1):
72
lines = []
Callers
11
readlines
Method · 0.95
test_readline
Method · 0.45
test_readline_binary_mode
Method · 0.45
test_inplace_binary_write_mode
Method · 0.45
test_inplace_encoding_errors
Method · 0.45
test_file_hook_backward_compatibility
Method · 0.45
test_readline_os_fstat_raises_OSError
Method · 0.45
test_readline_os_chmod_raises_OSError
Method · 0.45
test_readline_buffering
Method · 0.45
test_pathlike_file
Method · 0.45
test_pathlike_file_inplace
Method · 0.45
Calls
1
append
Method · 0.45
Tested by
no test coverage detected