Python multithreaded print statements delayed until all threads complete execution
For python 3 you can now use the flush
param like that:
print('Your text', flush=True)
This happens due to stdout buffering. You still can flush the buffers:
import sys
print 'starting'
sys.stdout.flush()
You can find more info on this issue here and here.