This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Sworddragon
Recipients Claudiu.Popa, Sworddragon
Date 2013-11-21.12:53:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385038389.23.0.311335594746.issue19671@psf.upfronthosting.co.za>
In-reply-to
Content
> Hi. Since Python 3.2, compileall functions supports the optimization level through the `optimize` parameter.

> 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.

This is the problem: You can't pass the optimization level to compile_dir|compile_file|compile_path. What, if you want for location a .pyc files and for location b .pyo files? Or even .pyc files and .pyo files for both locations? The only solution is to make a command call within the script which is a little bit ugly.
History
Date User Action Args
2013-11-21 12:53:09Sworddragonsetrecipients: + Sworddragon, Claudiu.Popa
2013-11-21 12:53:09Sworddragonsetmessageid: <1385038389.23.0.311335594746.issue19671@psf.upfronthosting.co.za>
2013-11-21 12:53:09Sworddragonlinkissue19671 messages
2013-11-21 12:53:09Sworddragoncreate