Inter-process communication, how? Part 2

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Sun Dec 23 10:55:40 EST 2007


ecir.hana at gmail.com wrote:
> Ok, but how to redirect "print" statement into a socket?

Create an object that has the socket's send-or-what-it's-called
method as a member called "write" and bind this object to
sys.stdout. Alternatively, you can use the "print "text" >> object"
syntax (see language reference).

Regards,


Björn

-- 
BOFH excuse #116:

the real ttys became pseudo ttys and vice-versa.




More information about the Python-list mailing list