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

Method create_workers

example_code/item_052.py:187–191  ·  view source on GitHub ↗
(cls, input_class, config)

Source from the content-addressed store, hash-verified

185
186 @classmethod
187 def create_workers(cls, input_class, config):
188 workers = []
189 for input_data in input_class.generate_inputs(config):
190 workers.append(cls(input_data))
191 return workers
192
193
194print("Example 13")

Callers 1

mapreduceFunction · 0.80

Calls 2

generate_inputsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected