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

Function create_workers

example_code/item_052.py:99–103  ·  view source on GitHub ↗
(input_list)

Source from the content-addressed store, hash-verified

97
98print("Example 6")
99def create_workers(input_list):
100 workers = []
101 for input_data in input_list:
102 workers.append(LineCountWorker(input_data))
103 return workers
104
105
106print("Example 7")

Callers 1

mapreduceFunction · 0.85

Calls 2

LineCountWorkerClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected