for c in candidates:
    f.append(sum(c))
return f
my_func = my_decorator(old_my_func)
if __name__ == '__main__':
    candidates = [[random.randint(0, 9) for _ in range(5)] for _ in range(10)]
pool = multiprocessing.Pool(processes=4)
results = [pool.apply_async(my_func, ([c], {})) for c in candidates]
pool.close()
f = [r.get()[0] for r in results]
print(f)
Сбой декоратора Python с многопроцессорной обработкой