On 22 December 2011 14:58, Bináris <wikiposta(a)gmail.com> wrote:
However, it would be nice to be able to suppress
unnecessary messages.
Every script should have this feature. I often experience that a large
amount of screen output makes programs run slower.
I sincerely doubt that the stdout/stderr output has an effect on the speed
of
pywikipedia, as it is limited mainly by throttling. Even if you disable
throttling, you will be limited by the network and not by your screen.
However, if you want, you can redirect the stdout/stderr output as normal
using > and 2>.
Last but not least, feel free to rewrite all bots to use the python logging
module, as it exists for long enough to be used (since python 2.3).
Best regards,
Merlijn