Kaydet (Commit) 01606dea authored tarafından Éric Araujo's avatar Éric Araujo

#10553: Explain why compileall has no command-line argument to control optimization

üst b39b1967
...@@ -68,6 +68,9 @@ compile Python sources. ...@@ -68,6 +68,9 @@ compile Python sources.
.. versionchanged:: 3.2 .. versionchanged:: 3.2
Added the ``-i``, ``-b`` and ``-h`` options. 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 Public functions
---------------- ----------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment