mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-17232: Clarify docs for -O and -OO command line options (#5839)
The 'optimization' is for space in the executable file, not for run time.
This commit is contained in:
parent
6cdb7954b0
commit
186b606d8a
4 changed files with 23 additions and 6 deletions
|
@ -164,10 +164,13 @@ for the named module and runs the corresponding
|
|||
file as a script.
|
||||
.TP
|
||||
.B \-O
|
||||
Turn on basic optimizations. Given twice, causes docstrings to be discarded.
|
||||
Remove assert statements and any code conditional on the value of
|
||||
__debug__; augment the filename for compiled (bytecode) files by
|
||||
adding .opt-1 before the .pyc extension.
|
||||
.TP
|
||||
.B \-OO
|
||||
Discard docstrings in addition to the \fB-O\fP optimizations.
|
||||
Do \fB-O\fP and also discard docstrings; change the filename for
|
||||
compiled (bytecode) files by adding .opt-2 before the .pyc extension.
|
||||
.TP
|
||||
.B \-q
|
||||
Do not print the version and copyright messages. These messages are
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue