I'm following the answer by F Sebastian at; Python multiprocessing pool.map for multiple arguments which is using multiprocessing to compute on a function. I'm building up in the argument input, and I'd like my fixed input to the function_star to be '1', '2' and the varying input the 'x' and 'y', howeever when I try the following:
args = itertools.izip(('x', 'y'), itertools.repeat(('1', '2')))
I get the following:
('x', ('1', '2')) ('y', ('1', '2'))
But I'd like to join up the tuples within the itertools, so that I can send it off to:
pool.map(func_star, args)
I'd like something that is more akin to as the first element from the itertools:
('x', '1', '2')...
so my function_star has convert this one argument to three.