[Python-ideas] Changes to the existing optimization levels

Victor Stinner victor.stinner at gmail.com
Thu Sep 28 18:09:33 EDT 2017


>     2) Added a new command line option N that allows you to specify
> any number of individual optimization flags.
>
>     For example:
>
>         python -N nodebug -N noassert -N nodocstring

You may want to look at my PEP 511 which proposes to add a new "-o"
option to specify a list of optimizations:
https://www.python.org/dev/peps/pep-0511/#changes

The PEP proposes to add a new sys.implementation.optim_tag which is
used to generated the .pyc filename.

Victor


More information about the Python-ideas mailing list