MCPcopy Index your code
hub / github.com/python/cpython / calculate

Function calculate

Doc/includes/mp_workers.py:19–22  ·  view source on GitHub ↗
(func, args)

Source from the content-addressed store, hash-verified

17#
18
19def calculate(func, args):
20 result = func(*args)
21 return '%s says that %s%s = %s' % \
22 (current_process().name, func.__name__, args, result)
23
24#
25# Functions referenced by tasks

Callers 1

workerFunction · 0.70

Calls 2

current_processFunction · 0.90
funcFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…