On Wed, Apr 29, 2009 at 2:01 PM, psaff...@googlemail.com <psaff...@googlemail.com> wrote: > I'm trying to get to grips with the multiprocessing module, having > only used ParallelPython before. > > based on this example: > > http://docs.python.org/library/multiprocessing.html#using-a-pool-of-workers > > what happens if I want my "f" to take more than one argument? I want > to have a list of tuples of arguments and have these correspond the > arguments in f, but it keeps complaining that I only have one argument > (the tuple). Do I have to pass in a tuple and break it up inside f? I > can't use multiple input lists, as I would with regular map. > > Thanks, > > Peter
Perhaps these articles will help you: http://www.doughellmann.com/PyMOTW/multiprocessing/communication.html#pool-map http://www.doughellmann.com/PyMOTW/multiprocessing/mapreduce.html#simplemapreduce jesse -- http://mail.python.org/mailman/listinfo/python-list