Accordingo to the python python documentation concerning sys.stdout
and sys.stderr
:
stdout is used for the output of print() and expression statements and for the prompts of input();
The interpreter’s own prompts and its error messages go to stderr.
Nevertheless, according to the documentation ot tqdm the default output is sys.stderr.
I am confused on why this would be the case given that it does not seem to be related to the interpreter own prompts or error messages. What am I missing? Why is tqdm output directed to sys.stderr and not to sys.stdout?
Edit: I think that the discussion here sort of answers this: When to use sys.stdout instead of sys.stderr?