def add(args): (x,y) = args return x+y
def main(): if __name__ == “__main__”: pool = Pool(2) results = pool.map(add,[(1,2),(2,3),(3,4)]) Log(“result”,results)
This code always suggests that you can't pickle to add methods, can anyone help me look it up? or provide a bit of a run-through process pool example.