Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
flushing output buffers
#1
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.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
flushing output buffers - by Skaperen - Aug-03-2023, 01:36 AM
RE: flushing output buffers - by Gribouillis - Aug-03-2023, 04:31 AM
RE: flushing output buffers - by Skaperen - Aug-04-2023, 02:58 AM
RE: flushing output buffers - by PyDan - Aug-04-2023, 09:25 AM
RE: flushing output buffers - by Skaperen - Aug-06-2023, 11:58 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020