> import sys
> sys.stdout = open("stdout.log","w")
> sys.stderr = open("stderr.log","w")
> print "This goes to stdout"
> print >>sys.stderr, "This goes to stderr"
>
This did the trick. Thanks
Peter
--
http://mail.python.org/mailman/listinfo/python-list
En Fri, 15 Feb 2008 11:59:07 -0200, peter <[EMAIL PROTECTED]>
escribió:
> I am developing code using the effbot Console module, which gives
> control over the Windows terminal settings. My problem is that while
> this module redirects standard output to a new console window, it
> seems to redir
peter wrote:
> I am developing code using the effbot Console module, which gives
> control over the Windows terminal settings. My problem is that while
> this module redirects standard output to a new console window, it
> seems to redirect standard error messages to a black hole. So when my
> new