mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
Patch #552812: Better description in "python -h" for -u.
This commit is contained in:
parent
75d2d94e0f
commit
611a7101ca
2 changed files with 6 additions and 1 deletions
|
@ -138,7 +138,11 @@ indentation in a way that makes it depend on the worth of a tab
|
||||||
expressed in spaces. Issue an error when the option is given twice.
|
expressed in spaces. Issue an error when the option is given twice.
|
||||||
.TP
|
.TP
|
||||||
.B \-u
|
.B \-u
|
||||||
Force stdin, stdout and stderr to be totally unbuffered.
|
Force stdin, stdout and stderr to be totally unbuffered. Note that
|
||||||
|
there is internal buffering in xreadlines(), 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
|
.TP
|
||||||
.B \-v
|
.B \-v
|
||||||
Print a message each time a module is initialized, showing the place
|
Print a message each time a module is initialized, showing the place
|
||||||
|
|
|
@ -62,6 +62,7 @@ static char *usage_2 = "\
|
||||||
-S : don't imply 'import site' on initialization\n\
|
-S : don't imply 'import site' on initialization\n\
|
||||||
-t : issue warnings about inconsistent tab usage (-tt: issue errors)\n\
|
-t : issue warnings about inconsistent tab usage (-tt: issue errors)\n\
|
||||||
-u : unbuffered binary stdout and stderr (also PYTHONUNBUFFERED=x)\n\
|
-u : unbuffered binary stdout and stderr (also PYTHONUNBUFFERED=x)\n\
|
||||||
|
see man page for details on internal buffering relating to "-u"\n\
|
||||||
";
|
";
|
||||||
static char *usage_3 = "\
|
static char *usage_3 = "\
|
||||||
-v : verbose (trace import statements) (also PYTHONVERBOSE=x)\n\
|
-v : verbose (trace import statements) (also PYTHONVERBOSE=x)\n\
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue