From 01606dea3d75faf73e507c7b200a42897338d44b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Araujo?= Date: Sat, 26 Mar 2011 03:22:55 +0100 Subject: #10553: Explain why compileall has no command-line argument to control optimization --- Doc/library/compileall.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/library/compileall.rst b/Doc/library/compileall.rst index 55dd958..cb7a09c 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 ---------------- -- cgit v0.12