On a given embedded Linux machine I have a Python 3.3 distribution installed which seems to have the optimization option -O
enabled by default.
This has the following effects:
.pyo
files are being generated (rather than.pyc
)assert
statements have no effect__debug__
is set toFalse
- Some IDEs seem to be unable to provide remote debugging (see WingIDE)
Is there a way to disable basic optimization on the command line? I tried to set PYTHONOPTIMIZE
to empty string but this does not have any effect.
env
orprintenv
, and did you ensure that you are not using a wrapper that forces -O option?