Inter Process Communication with python
Robert Meegan
Robert.Meegan at wcom.com
Thu May 27 11:12:30 EDT 1999
On Thu, 27 May 1999, Goran Allerbo wrote:
> atheunissen at hotmail.com wrote:
> >
> > I'm looking for some information concerning Inter Process Communication
> > with Python. How is't possible to implement it with Python ???
> >
>
> One way of doing it is to send pickled objects
> over socket connections. I'm doing that in a
> multiprocess Python server app. and it works
> just fine.
>
It is also possible to use repr() on an object before sending it over a
socket connection. The receiving side then runs eval() to restore the
object. This should only be done over a "safe" connection, but it allows
executable objects to be passed and it has the advantage of not passing
binary data, if that matters on your connection.
--- Robert
--------------------------------
Robert Meegan
MCIWorldCom - Cedar Rapids, Iowa
319.375.2416
More information about the Python-list
mailing list