Closed ipeterov closed 8 years ago
In original map
the problem of passing args and kwargs (and not just one arg, which is trivial and easy to use) can be solved by using lambdas. But here we cant do this, we have to call a function that is present on all the worker machines.
One solution is to make map
and map_unordered
acccept lists of single args, and for more complicated calls, implement apply(funcion_description, args=[], kwargs={})
/
If we will be able to use marshalling of fucntions to pass them to the workers, this issue will be solved automaically.
The current one, especially the
argskwargs
part, is frustrating to use.