Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ worker
Function
worker
Doc/includes/mp_workers.py:10–13 ·
view source on GitHub ↗
(input, output)
Source
from the content-addressed store, hash-verified
8
#
9
10
def
worker(input, output):
11
for
func, args in iter(input.get,
'STOP'
):
12
result = calculate(func, args)
13
output.put(result)
14
15
#
16
# Function used to calculate result
Callers
nothing calls this directly
Calls
2
calculate
Function · 0.70
put
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…