summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2017-10-11 14:09:57 (GMT)
committerGitHub <noreply@github.com>2017-10-11 14:09:57 (GMT)
commit5f908005ce16b06d5af7b413264009c4b062f33c (patch)
tree21b4bcfc5babbba797a8733834b92372a4a10d4e /Modules
parent764969a4b9ed7c6d2adbc04269f9b4fa392a1eed (diff)
downloadcpython-5f908005ce16b06d5af7b413264009c4b062f33c.zip
cpython-5f908005ce16b06d5af7b413264009c4b062f33c.tar.gz
cpython-5f908005ce16b06d5af7b413264009c4b062f33c.tar.bz2
bpo-28647: Update -u documentation (GH-3954)
* stdout and stderr are always opened in text mode * and they are line-buffered Initial patch by Gareth Rees.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/main.c b/Modules/main.c
index 475a2fd..bcb992f 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -71,9 +71,9 @@ static const char usage_2[] = "\
-S : don't imply 'import site' on initialization\n\
";
static const char usage_3[] = "\
--u : unbuffered binary stdout and stderr, stdin always buffered;\n\
+-u : force the binary I/O layers of stdout and stderr to be unbuffered;\n\
+ stdin is always buffered; text I/O layer will be line-buffered;\n\
also PYTHONUNBUFFERED=x\n\
- see man page for details on internal buffering relating to '-u'\n\
-v : verbose (trace import statements); also PYTHONVERBOSE=x\n\
can be supplied multiple times to increase verbosity\n\
-V : print the Python version number and exit (also --version)\n\