redirect stdout
Oliver Eichler
oliver.eichler at dspsolutions.de
Fri Jul 5 05:41:06 EDT 2002
Oliver Eichler wrote:
> Hi
>
> I am using the bdb module wrapped by my own script to step thru a python
> script. Within the debugged script I have some textual printout to stdout.
> Is it possible to redirect the stdout stream e.g. to a socket?
>
> Oliver
Never mind, it's easy :)
sys.stdout = sock.makefile("w")
I guess... Python is to easy for me :)
Oliver
More information about the Python-list
mailing list