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

Method __init__

example_code/item_052.py:58–60  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

56print("Example 2")
57class PathInputData(InputData):
58 def __init__(self, path):
59 super().__init__()
60 self.path = path
61
62 def read(self):
63 with open(self.path) as f:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected