redirecting output

Jp Calderone jcaldero at ic.sunysb.edu
Wed Jan 31 17:35:47 EST 2001


  I've attached the python interpreter to a server,
essentially letting people connect to the given address
and port and pump stuff into it.  What I can't figure out
is how I might go about redirecting the output from some
of the builtin functions - dir(), print, etc, to their
socket.  Is this possible?

 Thanks in advance,
   Jp



More information about the Python-list mailing list