Passing functions as parameter (multiprocessing)

Jean-Michel Pichavant jeanmichel at sequans.com
Tue Nov 13 20:00:42 CET 2012


----- 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.
> 
> Jean-Michel's Post had the following comment preceding his subproc()
> definition
> 
> >>>    # here it should be decorated, but for this example to be kept
> >>>     simple, the function is only wrapped, doing nothing special
> 
> which I unhelpfully removed...
> 
> --
> http://mail.python.org/mailman/listinfo/python-list
> 

Anyway thank you all, I solved the issue with Peter's code.
func was rebound after each iteration, though I though it wasn't.

I would not have figured it out by myself, my mind was lost in the mysteries of subprocesses, decorated and wrapped methods.

Cheers,

JM








-- IMPORTANT NOTICE: 

The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.


More information about the Python-list mailing list