diff options
author | Sjoerd Mullender <sjoerd@acm.org> | 2002-08-09 13:37:31 (GMT) |
---|---|---|
committer | Sjoerd Mullender <sjoerd@acm.org> | 2002-08-09 13:37:31 (GMT) |
commit | b6434f2c2ff94abfe2d639eff20d3d5ba1b0fd7a (patch) | |
tree | 52b09c85d4a96c1f97f43673c2a96b2bbc8094e9 /Misc | |
parent | 9cf424b04bf355df85659da18abc2ac3f9419c37 (diff) | |
download | cpython-b6434f2c2ff94abfe2d639eff20d3d5ba1b0fd7a.zip cpython-b6434f2c2ff94abfe2d639eff20d3d5ba1b0fd7a.tar.gz cpython-b6434f2c2ff94abfe2d639eff20d3d5ba1b0fd7a.tar.bz2 |
Document that -u puts stdin, stdout, and stderr in binary mode.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/python.man | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Misc/python.man b/Misc/python.man index 2aa1de8..5d4c617 100644 --- a/Misc/python.man +++ b/Misc/python.man @@ -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. .TP .B \-u -Force stdin, stdout and stderr to be totally unbuffered. Note that -there is internal buffering in xreadlines(), readlines() and file-object -iterators ("for line in sys.stdin") which is not influenced by this -option. To work around this, you will want to use "sys.stdin.readline()" -inside a "while 1:" loop. +Force stdin, stdout and stderr to be totally unbuffered. On systems +where it matters, also put stdin, stdout and stderr in binary mode. +Note that there is internal buffering in xreadlines(), readlines() and +file-object iterators ("for line in sys.stdin") which is not +influenced by this option. To work around this, you will want to use +"sys.stdin.readline()" inside a "while 1:" loop. .TP .B \-v Print a message each time a module is initialized, showing the place |