[Tutor] stderr

Arne Mueller a.mueller@icrf.icnet.uk
Tue, 13 Apr 1999 16:24:35 +0100


Hi All,

is there an easy way like in C or perl to use 'print' to write to stderr
instead stdout?

python> print sys.stderr 'error' 

that doesn't work :-(

assigning sys.stdout to sys.stderr is not a good solution. I dont want
to reassign stderr/stdout everytime I switch between error messages and
data output.

python> sys.stdout = sys.stderr
python> print 'error'

... work but is not usefull

	thanks,

	Arne