Re: Simple print to stderr

2008-10-27 Thread Matt Nordhoff
RC wrote: > By default the print statement sends to stdout > I want to send to stderr > > Try > > print "my meeage", file=sys.stderr > > I got >> SyntaxError: invalid syntax > > I try > > print "my message", sys.stderr > > But it still sent to stdout. > What is the syntax? > > I wouldn't und

Simple print to stderr

2008-10-27 Thread RC
By default the print statement sends to stdout I want to send to stderr Try print "my meeage", file=sys.stderr I got SyntaxError: invalid syntax I try print "my message", sys.stderr But it still sent to stdout. What is the syntax? I wouldn't understand Python's manual print([object,