[Baypiggies] Help ! How to exchange python objects between two python processes on the same machine ?

Shannon -jj Behrens jjinux at gmail.com
Sat Jul 11 08:37:26 CEST 2009


On Fri, Jul 10, 2009 at 8:29 PM, David Berthelot<d_berthelot at yahoo.com> wrote:
> Finally here's the solution I adopted.
>
> 1. I created a os.pipe()
> 2. I simply spawned the 2 processes from python, and passed  them the pipe
> fileno() as arguments.
>
> Since the filenos were inherited then I could use them to exchange data.
> Since I'm mostly exchanging numeric arrays, I use the array class to pass
> binary data between them.
>
> Thanks for all your suggestions,

Old school.  I love it ;)

-jj

-- 
In this life we cannot do great things. We can only do small things
with great love. -- Mother Teresa
http://jjinux.blogspot.com/


More information about the Baypiggies mailing list