Closed Zebrafish007 closed 6 years ago
Hi, multi-threading is hard, especially with input and output. You need to call sys.stdout.flush()
after your multi-threaded print statements. Then you will get the same output as you would if you ran invoked python [FILENAME]
directly.
Hi Mitchell,
Cheers. wasn't aware something like that could be done. Clearly not a bug.
Short Summary
The printing standard output to command output fails for several substeps during a run of the the below script. This makes it harder to follow what goes on in realtime during tracking tasks for a kernel script during multiprocessing.
Steps to Reproduce
Expected results
Process h DONE
Actual results
Edit 11.0:
mp_handler_tandem():
Edit 10.2.3:
Platform Information
Komodo Edit or IDE? Komodo Edit Komodo Version? 10.2.3 build 17708 and 11.0 build 18119 Operating System (and version)? Windows 10 (10.0.15063)
Python 2.7.13 and/ or 3.6.
Additional Information
Last known startpoint in error log when I ran this code:
Edit 11.0: [2017-11-10 13:59:37,970] pystderr.log