I would like to pass keyword arguments to my worker-function with Pool.map(). I can\'t find a clear example of this when searching forums.
Example Code:
<
If you want to iterate over the other arguments, use @ArcturusB's answer.
If you just want to pass them, having the same value for each iteration, then you can do this:
from functools import partial
pool.map(partial(worker, **kwargs), jobs)
Partial 'binds' arguments to a function. Old versions of Python cannot serialize partial objects though.