Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b6434f2

Browse files
Document that -u puts stdin, stdout, and stderr in binary mode.
1 parent 9cf424b commit b6434f2

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Misc/python.man

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,12 @@ indentation in a way that makes it depend on the worth of a tab
138138
expressed in spaces. Issue an error when the option is given twice.
139139
.TP
140140
.B \-u
141-
Force stdin, stdout and stderr to be totally unbuffered. Note that
142-
there is internal buffering in xreadlines(), readlines() and file-object
143-
iterators ("for line in sys.stdin") which is not influenced by this
144-
option. To work around this, you will want to use "sys.stdin.readline()"
145-
inside a "while 1:" loop.
141+
Force stdin, stdout and stderr to be totally unbuffered. On systems
142+
where it matters, also put stdin, stdout and stderr in binary mode.
143+
Note that there is internal buffering in xreadlines(), readlines() and
144+
file-object iterators ("for line in sys.stdin") which is not
145+
influenced by this option. To work around this, you will want to use
146+
"sys.stdin.readline()" inside a "while 1:" loop.
146147
.TP
147148
.B \-v
148149
Print a message each time a module is initialized, showing the place

0 commit comments

Comments
 (0)