Mercurial > cpython-lru_cache-weakref
diff Misc/python.man @ 19739:8d2c7436b9d2 legacy-trunk
Document -Q. Move arguments around to be in strict alphabetical
order. Add breaks in SYNOPSIS.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 05 Sep 2001 18:55:34 +0000 |
| parents | 045f55135ad0 |
| children | 8e6e248dfdd8 |
line wrap: on
line diff
--- a/Misc/python.man Wed Sep 05 18:43:35 2001 +0000 +++ b/Misc/python.man Wed Sep 05 18:55:34 2001 +0000 @@ -7,31 +7,37 @@ .B \-d ] [ +.B \-E +] +[ +.B \-h +] +[ .B \-i ] [ .B \-O ] +.br + [ +.B -Q +.I argument +] [ .B \-S ] [ -.B \-E -] -[ .B \-t ] [ .B \-u ] [ -.B \-v +.B \-U ] -[ -.B \-x -] -[ -.B \-h +.br + [ +.B \-v ] [ .B \-V @@ -40,6 +46,9 @@ .B \-W .I argument ] +[ +.B \-x +] .br [ .B \-c @@ -78,10 +87,22 @@ program. .SH COMMAND LINE OPTIONS .TP +.BI "\-c " command +Specify the command to execute (see next section). +This terminates the option list (following options are passed as +arguments to the command). +.TP .B \-d Turn on parser debugging output (for wizards only, depending on compilation options). .TP +.B \-E +Ignore environment variables like PYTHONPATH and PYTHONHOME that modify +the behavior of the interpreter. +.TP +.B \-h +Prints the usage for the interpreter executable and exits. +.TP .B \-i When a script is passed as first argument or the \fB\-c\fP option is used, enter interactive mode after executing the script or the @@ -95,6 +116,15 @@ .I .pyc to \fI.pyo\fP. Given twice, causes docstrings to be discarded. .TP +.BI "\-Q " argument +Division control; see PEP 238. The argument must be one of "old" (the +default, int/int and long/long return an int or long), "new" (new +division semantics, i.e. int/int and long/long returns a float), +"warn" (old division semantics with a warning for int/int and +long/long), or "warnall" (old division semantics with a warning for +all use of the division operator). For a use of "warnall", see the +Tools/scripts/fixdiv.py script. +.TP .B \-S Disable the import of the module .I site @@ -102,10 +132,6 @@ .I sys.path that it entails. .TP -.B \-E -Ignore environment variables like PYTHONPATH and PYTHONHOME that modify -the behavior of the interpreter. -.TP .B \-t Issue a warning when a source file mixes tabs and spaces for indentation in a way that makes it depend on the worth of a tab @@ -121,14 +147,6 @@ searching for a module. Also provides information on module cleanup at exit. .TP -.B \-x -Skip the first line of the source. This is intended for a DOS -specific hack only. Warning: the line numbers in error messages will -be off by one! -.TP -.B \-h -Prints the usage for the interpreter executable and exits. -.TP .B \-V Prints the Python version number of the executable and exits. .TP @@ -197,10 +215,10 @@ field matches the line number, where zero matches all line numbers and is thus equivalent to an omitted line number. .TP -.BI "\-c " command -Specify the command to execute (see next section). -This terminates the option list (following options are passed as -arguments to the command). +.B \-x +Skip the first line of the source. This is intended for a DOS +specific hack only. Warning: the line numbers in error messages will +be off by one! .SH INTERPRETER INTERFACE The interpreter interface resembles that of the UNIX shell: when called with standard input connected to a tty device, it prompts for
