Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • upvote. Correction: sys.stdout (and C stdout stream where the subprocess writes) may be line-buffered if it refers to a tty (common for stdio-based programs such as python2). Terminal editing mode (raw, line) is unrelated here. Commented Jan 15, 2015 at 17:54
  • @J.F.Sebastian: Qualified it; I habitually refer to it a a terminal for short, but having actually used physical terminals, you are correct that that is not precise enough. Commented Jan 15, 2015 at 17:58
  • 1
    no. I meant that sys.stdout Python object, C stdout (FILE*) (program properties -- inside) are different from terminal (stty may change its parameters). The latter exists before/during/after the program (outside). The buffers are inside the processes. Commented Jan 15, 2015 at 18:06
  • @J.F.Sebastian: right, I am talking about the buffers in the Python process here. Commented Jan 15, 2015 at 18:21