[Python-checkins] bpo-28647: Update -u documentation (GH-3954)

Berker Peksag webhook-mailer at python.org
Wed Oct 11 10:10:06 EDT 2017


https://github.com/python/cpython/commit/5f908005ce16b06d5af7b413264009c4b062f33c
commit: 5f908005ce16b06d5af7b413264009c4b062f33c
branch: 3.6
author: Berker Peksag <berker.peksag at gmail.com>
committer: GitHub <noreply at github.com>
date: 2017-10-11T17:09:57+03:00
summary:

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.

files:
M Modules/main.c

diff --git a/Modules/main.c b/Modules/main.c
index 475a2fdc36d..bcb992feab7 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\



More information about the Python-checkins mailing list