From 2a797ff8913da14a40c9a8bebc955184fbc98038 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Thu, 18 May 2017 22:48:39 +0300 Subject: [PATCH] bpo-28647: Update -u documentation * stdout and stderr are always opened in text mode * and they are line-buffered Initial patch by Gareth Rees. --- Modules/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/main.c b/Modules/main.c index 2fb230a60baed8..ecb8266501c2f1 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\