Python Multiprocessing Keyword Arguments
Here is a simple example of using keyword arguments in a function call. Nothing special. def foo(arg1,arg2, **args): print arg1, arg2 print (args) print args['x'] arg
Solution 1:
The dictionary you are using as keyword args should be passed in as the kwargs
parameter to the Process
object.
pool = [multiprocessing.Process(target=stretch, args= (shared_arr,slice(i, i+step)),kwargs=args) for i in range (0, y, step)]
Post a Comment for "Python Multiprocessing Keyword Arguments"