[Baypiggies] Help ! How to exchange python objects between two python processes on the same machine ?
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,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Baypiggies