summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-03-26 03:22:55 +0100
committerÉric Araujo <merwok@netwok.org>2011-03-26 03:22:55 +0100
commit01606dea3d75faf73e507c7b200a42897338d44b (patch)
tree48f21b43ced108ef18d330445da512fd2e176e5f
parentb39b1967cec1cab582cfe161d935521774fceaf7 (diff)
downloadcpython-git-01606dea3d75faf73e507c7b200a42897338d44b.tar.gz
#10553: Explain why compileall has no command-line argument to control optimization
-rw-r--r--Doc/library/compileall.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/compileall.rst b/Doc/library/compileall.rst
index 55dd958909..cb7a09c0fb 100644
--- a/Doc/library/compileall.rst
+++ b/Doc/library/compileall.rst
@@ -68,6 +68,9 @@ compile Python sources.
.. versionchanged:: 3.2
Added the ``-i``, ``-b`` and ``-h`` options.
+There is no command-line option to control the optimization level used by the
+:func:`compile` function, because the Python interpreter itself already
+provides the option: :program:`python -O -m compileall`.
Public functions
----------------