Nov-01-2019, 01:34 AM
i want to combine stdout and stderr on the same output so both can go over a single pipe. the buffering of stdout can mess up the line ordering. i don't want to solve that be eliminating buffering. i want output to either to be buffered in a common buffer. it seemed to work when i did
import sys ... sys.stdout.flush() # not necessary if before any output sys.stderr.flush() # i have hit cases where it was buffered sys.stderr = sys.stdout ...is there a more appropriate way to do this?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.