Can’t pickle when using multiprocessing Pool.map()
I’m trying to use multiprocessing‘s Pool.map() function to divide out work simultaneously. When I use the following code, it works fine: import multiprocessing def f(x): return x*x def go(): pool = multiprocessing.Pool(processes=4) print pool.map(f, range(10)) if __name__== ‘__main__’ : go() However, when I use it in a more object-oriented approach, it doesn’t work. The error … Read more