Aug-03-2023, 01:36 AM
output to 2 open files that are buffered may get alternating output calls. when that output finally goes to a common file destination, output is mixed, but not necessarily in the same order as the original output calls like print().
i want to get the correct output mix order. does Python have a way to do that (such as a flush_all() call that knows how to do it from stored info)? or is it better to modify the files to be unbuffered? what action would you do?
in C, i did not solve this problem other that by modifying the calling code to flush the buffer after each PUT.
i want to get the correct output mix order. does Python have a way to do that (such as a flush_all() call that knows how to do it from stored info)? or is it better to modify the files to be unbuffered? what action would you do?
in C, i did not solve this problem other that by modifying the calling code to flush the buffer after each PUT.