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
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,