Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 01606de

Browse files
committed
#10553: Explain why compileall has no command-line argument to control optimization
1 parent b39b196 commit 01606de

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Doc/library/compileall.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ compile Python sources.
6868
.. versionchanged:: 3.2
6969
Added the ``-i``, ``-b`` and ``-h`` options.
7070

71+
There is no command-line option to control the optimization level used by the
72+
:func:`compile` function, because the Python interpreter itself already
73+
provides the option: :program:`python -O -m compileall`.
7174

7275
Public functions
7376
----------------

0 commit comments

Comments
 (0)