Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ read_visits
Function
read_visits
example_code/item_021.py:73–76 ·
view source on GitHub ↗
(data_path)
Source
from the content-addressed store, hash-verified
71
f.write(f
"{i}\n"
)
72
73
def
read_visits(data_path):
74
with
open(data_path)
as
f:
75
for
line in f:
76
yield
int(line)
77
78
79
print(
"Example 4"
)
Callers
1
item_021.py
File · 0.85
Calls
1
open
Function · 0.85
Tested by
no test coverage detected