MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / __init__

Method __init__

example_code/item_021.py:128–129  ·  view source on GitHub ↗
(self, data_path)

Source from the content-addressed store, hash-verified

126print("Example 10")
127class ReadVisits:
128 def __init__(self, data_path):
129 self.data_path = data_path
130
131 def __iter__(self):
132 with open(self.data_path) as f:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected