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

David Berthelot d_berthelot at yahoo.com
Sat Jul 11 05:29:20 CEST 2009


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,

David



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20090710/db87a68a/attachment.htm>


More information about the Baypiggies mailing list