MCPcopy 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
73def read_visits(data_path):
74 with open(data_path) as f:
75 for line in f:
76 yield int(line)
77
78
79print("Example 4")

Callers 1

item_021.pyFile · 0.85

Calls 1

openFunction · 0.85

Tested by

no test coverage detected