table1(i,:)
should have raised a SyntaxError. funtion
should probably be function
.
Please modify the code below so that we have runnable code which exhibits the IndexError. Otherwise, as you can see below, there is no error in the code you posted.
import multiprocessing as mp
def function(tab1,tab2):
return tab1+tab2
def function_wrapper(args):
return function(*args)
if __name__ == '__main__':
pool = mp.Pool()
arg = [(i,i) for i in range(1000)]
print(pool.map(function_wrapper, arg))
pool.close()
pool.join()