diff options
author | Cheryl Sabella <cheryl.sabella@gmail.com> | 2018-02-25 03:04:40 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2018-02-25 03:04:40 (GMT) |
commit | 186b606d8a2ea4fd51b7286813302c8e8c7006cc (patch) | |
tree | 0ddf940b844971caa235adf62bc162a931394a51 /Modules | |
parent | 6cdb7954b0a578d899e4b78b868ea59eef08480a (diff) | |
download | cpython-186b606d8a2ea4fd51b7286813302c8e8c7006cc.zip cpython-186b606d8a2ea4fd51b7286813302c8e8c7006cc.tar.gz cpython-186b606d8a2ea4fd51b7286813302c8e8c7006cc.tar.bz2 |
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.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/main.c b/Modules/main.c index 1ce075f..f6b5104 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -96,8 +96,10 @@ static const char usage_2[] = "\ if stdin does not appear to be a terminal; also PYTHONINSPECT=x\n\ -I : isolate Python from the user's environment (implies -E and -s)\n\ -m mod : run library module as a script (terminates option list)\n\ --O : optimize generated bytecode slightly; also PYTHONOPTIMIZE=x\n\ --OO : remove doc-strings in addition to the -O optimizations\n\ +-O : remove assert and __debug__-dependent statements; add .opt-1 before\n\ + .pyc extension; also PYTHONOPTIMIZE=x\n\ +-OO : do -O changes and also discard docstrings; add .opt-2 before\n\ + .pyc extension\n\ -q : don't print version and copyright messages on interactive startup\n\ -s : don't add user site directory to sys.path; also PYTHONNOUSERSITE\n\ -S : don't imply 'import site' on initialization\n\ |