[issue19671] Option to select the optimization level on compileall

2013-11-22 Thread Sworddragon
Sworddragon added the comment: After checking it: Yes it does, thanks for the hint. In this case I'm closing this ticket now. -- resolution: -> invalid status: open -> closed ___ Python tracker __

[issue19671] Option to select the optimization level on compileall

2013-11-22 Thread Éric Araujo
Éric Araujo added the comment: If I understand correctly, compileall is intended as a command-line tool, but there is py_compile if you want programmatic access. Does py_compile provide functions that let you control the optimization level? -- nosy: +eric.araujo _

[issue19671] Option to select the optimization level on compileall

2013-11-21 Thread Sworddragon
Sworddragon added the comment: > 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 pr

[issue19671] Option to select the optimization level on compileall

2013-11-20 Thread Claudiu.Popa
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:

[issue19671] Option to select the optimization level on compileall

2013-11-20 Thread Sworddragon
New submission from Sworddragon: Currently on calling one of the compileall functions it is not possible to pass the optimization level as argument. The bytecode will be created depending of the optimization level of the current script instance. But if a script wants to compile .pyc files for