]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#8213: document behavior of -u on py3k better.
authorGeorg Brandl <georg@python.org>
Fri, 2 Apr 2010 08:47:07 +0000 (08:47 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 2 Apr 2010 08:47:07 +0000 (08:47 +0000)
Doc/using/cmdline.rst
Misc/python.man

index 540e4d7b0f929291427b7a66ff0484ca72bb1454..0978770e1a4db3903369cedef31cea44e72b4151 100644 (file)
@@ -232,8 +232,9 @@ Miscellaneous options
 
 .. cmdoption:: -u
 
-   Force stdin, stdout and stderr to be totally unbuffered.  On systems where it
-   matters, also put stdin, stdout and stderr in binary mode.
+   Force the binary layer of the stdin, stdout and stderr streams (which is
+   available as their ``buffer`` attribute) to be unbuffered.  The text I/O
+   layer will still be line-buffered.
 
    See also :envvar:`PYTHONUNBUFFERED`.
 
index 9a406a8e95a4f3cbc1f7eb5b283b4c2b62329d39..b96c8608b14f786472766816ebffb26f6e6f6222 100644 (file)
@@ -165,12 +165,12 @@ and the site-dependent manipulations of
 that it entails.
 .TP
 .B \-u
-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 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 the binary I/O layers of stdin, stdout and stderr to be unbuffered.
+The text I/O layer will still be line-buffered.
+.\" Note that there is internal buffering in 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