Hello.
It looks just wrong as texts should be normally printed on stdout, and only sometimes, in case of error, standard error should be used instead. This is changed with r3324. output(... toStdout = True) occurs only 11 times, and there is a total of 1270 calls to output function.
Francesco Cosoleto said:
Hello.
It looks just wrong as texts should be normally printed on stdout, and only sometimes, in case of error, standard error should be used instead. This is changed with r3324. output(... toStdout = True) occurs only 11 times, and there is a total of 1270 calls to output function.
This was intentional. A user complained that the bot was writing informational messages to stdout, when the user wanted to use the bot Unix-style to pipe the output to another process; thus, stdout should only be used for the actual output of the process rather than informational messages.
Russ
Russell Blau ha scritto:
This was intentional. A user complained that the bot was writing informational messages to stdout, when the user wanted to use the bot Unix-style to pipe the output to another process; thus, stdout should only be used for the actual output of the process rather than informational messages.
It seems as I am wrong, and data should be send to stderr. :-/ And so the same behaviour is followed by others similar software.
pywikipedia-l@lists.wikimedia.org