| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -232,8 +232,9 @@ Miscellaneous options | |||
| 232 | 232 | ||
| 233 | 233 | .. cmdoption:: -u | |
| 234 | 234 | ||
| 235 | - Force stdin, stdout and stderr to be totally unbuffered. On systems where it | ||
| 236 | - matters, also put stdin, stdout and stderr in binary mode. | ||
| 235 | + Force the binary layer of the stdin, stdout and stderr streams (which is | ||
| 236 | + available as their ``buffer`` attribute) to be unbuffered. The text I/O | ||
| 237 | + layer will still be line-buffered. | ||
| 237 | 238 | ||
| 238 | 239 | See also :envvar:`PYTHONUNBUFFERED`. | |
| 239 | 240 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -165,12 +165,12 @@ and the site-dependent manipulations of | |||
| 165 | 165 | that it entails. | |
| 166 | 166 | .TP | |
| 167 | 167 | .B \-u | |
| 168 | - Force stdin, stdout and stderr to be totally unbuffered. On systems | ||
| 169 | - where it matters, also put stdin, stdout and stderr in binary mode. | ||
| 170 | - Note that there is internal buffering in readlines() and | ||
| 171 | - file-object iterators ("for line in sys.stdin") which is not | ||
| 172 | - influenced by this option. To work around this, you will want to use | ||
| 173 | - "sys.stdin.readline()" inside a "while 1:" loop. | ||
| 168 | + Force the binary I/O layers of stdin, stdout and stderr to be unbuffered. | ||
| 169 | + The text I/O layer will still be line-buffered. | ||
| 170 | + .\" Note that there is internal buffering in readlines() and | ||
| 171 | + .\" file-object iterators ("for line in sys.stdin") which is not | ||
| 172 | + .\" influenced by this option. To work around this, you will want to use | ||
| 173 | + .\" "sys.stdin.readline()" inside a "while 1:" loop. | ||
| 174 | 174 | .TP | |
| 175 | 175 | .B \-v | |
| 176 | 176 | Print a message each time a module is initialized, showing the place | |
| Back | FazBrowse Home | New Git URL |
0 commit comments