How to send output to file

Andreas Ulbrich ulbi at
Tue Jan 21 12:31:45 CET 2003

A wrote:
> Hi All,
> I use httplib module.
> By h.set_debuglevel(1) I start debugging but the output is written to DOS window.
> How can  I divert the output to file instead.
> Thank you for help.
> Ladislav
asign a file object to sys.stdout and/or sys.stderr

More information about the Python-list mailing list