Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
98
print(
"Example 6"
)
99
def
create_workers(input_list):
100
workers = []
101
for
input_data in input_list:
102
workers.append(LineCountWorker(input_data))
103
return
workers
104
105
106
print(
"Example 7"
)
Callers
1
mapreduce
Function · 0.85
Calls
2
LineCountWorker
Class · 0.85
append
Method · 0.45
Tested by
no test coverage detected