On 1/3/23, Weatherby,Gerard <gweathe...@uchc.edu> wrote: > If sys.stdout is a tty, it typically flushes on newline. e. g.
Sorry if I wasn't clear. Yes, a tty file will be buffered, but it's line buffering, which isn't an issue as long as lines are written to stdout. I was referring to full buffering of pipe and disk files. This can be a problem when printing diagnostics. We went the information written to the file immediately, not whenever the buffer happens to fill up. Thus sys.stderr is unbuffered. -- https://mail.python.org/mailman/listinfo/python-list