[docs] [issue12982] Document that importing .pyo files needs python -O
R. David Murray
report at bugs.python.org
Tue Jun 12 15:26:10 CEST 2012
R. David Murray <rdmurray at bitdance.com> added the comment:
Actually it's a lot easier than that, although it is very much a hack: just rename the .pyo files to .pyc, and python without -O will happily import them. Since the optimization happens when the bytecode is written, this does what you want.
----------
nosy: +r.david.murray
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12982>
_______________________________________
More information about the docs
mailing list