[Python-ideas] Changing optimisation level from a script

Victor Stinner victor.stinner at gmail.com
Sat Sep 10 03:17:11 EDT 2016


2016-09-10 2:56 GMT-04:00 Andrew Svetlov <andrew.svetlov at gmail.com>:
> There are also peephole optimization.
> Removing it may prevent false positives for coverage tool
> http://bugs.python.org/issue2506

My PEP 511 adds "-o noopt" to disable the peephole optimizer ;-)

"PEP 511 -- API for code transformers"
www.python.org/dev/peps/pep-0511/

Victor


More information about the Python-ideas mailing list