Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ PathInputData
Class
PathInputData
example_code/item_052.py:57–64 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
55
56
print(
"Example 2"
)
57
class
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:
64
return
f.read()
65
66
67
print(
"Example 3"
)
Callers
1
generate_inputs
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected