Error messages when using the Console Module

peter peter.mosley at talk21.com
Tue Feb 19 03:23:57 EST 2008


> 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



More information about the Python-list mailing list