[issue19671] Option to select the optimization level on compileall

Claudiu.Popa report at bugs.python.org
Thu Nov 21 07:20:47 CET 2013


Claudiu.Popa added the comment:

Hi. Since Python 3.2, compileall functions supports the optimization level through the `optimize` parameter. I guess you are using Python2.7 or so? Also, there's a note in compileall's documentation regarding the command line switch for the optimization level:

"
There is no command-line option to control the optimization level used by the compile() function, because the Python interpreter itself already provides the option: python -O -m compileall.
"
http://docs.python.org/3.2/library/compileall.html#command-line-use

----------
nosy: +Claudiu.Popa

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19671>
_______________________________________


More information about the Python-bugs-list mailing list