[issue40495] compileall: option to hardlink duplicate optimization levels bytecode cache files

STINNER Victor report at bugs.python.org
Mon May 11 11:13:23 EDT 2020


STINNER Victor <vstinner at python.org> added the comment:

While reviewing PR 19901, I was confused by py_compile and compileall documentation which is outdated: it doesn't mention that optimize argument can be a list of integers.

https://docs.python.org/dev/library/py_compile.html#py_compile.compile
"optimize controls the optimization level and is passed to the built-in compile() function. The default of -1 selects the optimization level of the current interpreter."

https://docs.python.org/dev/library/compileall.html#compileall.compile_dir
"optimize specifies the optimization level for the compiler. It is passed to the built-in compile() function."

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40495>
_______________________________________


More information about the Python-bugs-list mailing list