]> granicus.if.org Git - python/commitdiff
#10553: Explain why compileall has no command-line argument to control optimization
authorÉric Araujo <merwok@netwok.org>
Sat, 26 Mar 2011 02:22:55 +0000 (03:22 +0100)
committerÉric Araujo <merwok@netwok.org>
Sat, 26 Mar 2011 02:22:55 +0000 (03:22 +0100)
Doc/library/compileall.rst

index 55dd958909b3659ddc7fbb4f0b7423ddd2fe0444..cb7a09c0fb03bc8405a88dd2158ca7a53ce03bb3 100644 (file)
@@ -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
 ----------------