From: Éric Araujo Date: Sat, 26 Mar 2011 02:22:55 +0000 (+0100) Subject: #10553: Explain why compileall has no command-line argument to control optimization X-Git-Tag: v3.2.1b1~208 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=01606dea3d75faf73e507c7b200a42897338d44b;p=python #10553: Explain why compileall has no command-line argument to control optimization --- 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 ----------------