Jun-14-2019, 07:42 PM
(Jun-14-2019, 02:40 PM)DeaD_EyE Wrote: I think it depends on the terminal you use. I use xonsh and have sometimes problems with my terminal.
Also ncurses seems not to work with my configuration. In this case I have use /bin/bash.
You have also to recognize, that you have 3 streams: Standard input/output/error
Exceptions and logging is always on stderr. Output of data is stdout.
The print function outputs the text by default on stdout, but you can change it.
If you repeat the test, where the order was wrong, add following to your print function:
print('message', file=sys.stderr)Tell us, what happens.
The outcome was as expected.