Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ generate_inputs
Method
generate_inputs
example_code/item_052.py:168–171 ·
view source on GitHub ↗
(cls, config)
Source
from the content-addressed store, hash-verified
166
167
@classmethod
168
def
generate_inputs(cls, config):
169
data_dir = config[
"data_dir"
]
170
for
name in os.listdir(data_dir):
171
yield
cls(os.path.join(data_dir, name))
172
173
174
print(
"Example 12"
)
Callers
1
create_workers
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected