Using "pickle" for interprocess communication - some notes and things that ought to be documented.

Irmen de Jong irmen.NOSPAM at xs4all.nl
Thu Jan 17 19:24:57 EST 2008


Christian Heimes wrote:
> John Nagle wrote:
>> It's possible to use "pickle" for interprocess communication over
>> pipes, but it's not straightforward.
> 
> IIRC the processing module uses pickle for IPC. Maybe you can get some
> idea by reading its code?
> 
> http://pypi.python.org/pypi/processing/0.40
> 
> Christian
> 

So does Pyro: http://pyro.sourceforge.net/

However Pyro uses TCP-IP sockets for communication.

It uses a small header that contains the size of the message and a few other things,
and then the (binary by default) pickle stream.

--irmen





More information about the Python-list mailing list