Kaydet (Commit) b6434f2c authored tarafından Sjoerd Mullender's avatar Sjoerd Mullender

Document that -u puts stdin, stdout, and stderr in binary mode.

üst 9cf424b0
...@@ -138,11 +138,12 @@ indentation in a way that makes it depend on the worth of a tab ...@@ -138,11 +138,12 @@ indentation in a way that makes it depend on the worth of a tab
expressed in spaces. Issue an error when the option is given twice. expressed in spaces. Issue an error when the option is given twice.
.TP .TP
.B \-u .B \-u
Force stdin, stdout and stderr to be totally unbuffered. Note that Force stdin, stdout and stderr to be totally unbuffered. On systems
there is internal buffering in xreadlines(), readlines() and file-object where it matters, also put stdin, stdout and stderr in binary mode.
iterators ("for line in sys.stdin") which is not influenced by this Note that there is internal buffering in xreadlines(), readlines() and
option. To work around this, you will want to use "sys.stdin.readline()" file-object iterators ("for line in sys.stdin") which is not
inside a "while 1:" loop. influenced by this option. To work around this, you will want to use
"sys.stdin.readline()" inside a "while 1:" loop.
.TP .TP
.B \-v .B \-v
Print a message each time a module is initialized, showing the place Print a message each time a module is initialized, showing the place
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment