Re: Passing functions as parameter (multiprocessing)

2012-11-13 Thread Jean-Michel Pichavant
- Original Message - > Oscar Benjamin wrote: > > > I don't know if this is to do with the way that the code was > > simplified before posting but this subproc function wrapper does > > nothing (even after Peter fixed it below). This code is needlessly > > complicated for what it does. > >

Re: Passing functions as parameter (multiprocessing)

2012-11-13 Thread Peter Otten
Oscar Benjamin wrote: > I don't know if this is to do with the way that the code was > simplified before posting but this subproc function wrapper does > nothing (even after Peter fixed it below). This code is needlessly > complicated for what it does. Jean-Michel's Post had the following comment

Re: Passing functions as parameter (multiprocessing)

2012-11-13 Thread Oscar Benjamin
On 13 November 2012 12:51, Peter Otten <__pete...@web.de> wrote: > Jean-Michel Pichavant wrote: > >> I'm having problems understanding an issue with passing function as >> parameters. > >> Here's a code that triggers the issue: >> >> >> import multiprocessing >> >> def f1(): >> print 'I am f1'

Re: Passing functions as parameter (multiprocessing)

2012-11-13 Thread Peter Otten
Jean-Michel Pichavant wrote: > I'm having problems understanding an issue with passing function as > parameters. > Here's a code that triggers the issue: > > > import multiprocessing > > def f1(): > print 'I am f1' > def f2(foo): > print 'I am f2 %s' % foo > > workers = [ > (

Re: Passing functions as parameter (multiprocessing)

2012-11-13 Thread MRAB
On 2012-11-13 12:19, Jean-Michel Pichavant wrote: Fellows, I'm having problems understanding an issue with passing function as parameters. I'm sending some functions to the multiprocessing module (python 2.5 with the proper backport). I'm iterating on a list of functions, however it seems that