[Python-checkins] r79581 - in python/branches/py3k: Doc/using/cmdline.rst Misc/python.man
georg.brandl
python-checkins at python.org
Fri Apr 2 10:47:07 CEST 2010
Author: georg.brandl
Date: Fri Apr 2 10:47:07 2010
New Revision: 79581
Log:
#8213: document behavior of -u on py3k better.
Modified:
python/branches/py3k/Doc/using/cmdline.rst
python/branches/py3k/Misc/python.man
Modified: python/branches/py3k/Doc/using/cmdline.rst
==============================================================================
--- python/branches/py3k/Doc/using/cmdline.rst (original)
+++ python/branches/py3k/Doc/using/cmdline.rst Fri Apr 2 10:47:07 2010
@@ -232,8 +232,9 @@
.. 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`.
Modified: python/branches/py3k/Misc/python.man
==============================================================================
--- python/branches/py3k/Misc/python.man (original)
+++ python/branches/py3k/Misc/python.man Fri Apr 2 10:47:07 2010
@@ -165,12 +165,12 @@
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
More information about the Python-checkins
mailing list