On 10/12/2024 10:31, Roman Haefeli wrote:
It seems that Python's "print" buffers its output per default.
You can also disable output buffering entirely in a few different ways if you don't want to explicitly put flush in every print statement:
-u
command line switchPYTHONUNBUFFERED
env varsys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
https://stackoverflow.com/questions/107705/disable-output-buffering
Cheers,
Chris.