Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ readline
Function
readline
example_code/item_077.py:54–63 ·
view source on GitHub ↗
(handle)
Source
from the content-addressed store, hash-verified
52
pass
53
54
def
readline(handle):
55
offset = handle.tell()
56
handle.seek(0, 2)
57
length = handle.tell()
58
59
if
length == offset:
60
raise
NoNewData
61
62
handle.seek(offset, 0)
63
return
handle.readline()
64
65
66
print(
"Example 2"
)
Callers
1
tail_file
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected