Message162673
| Author |
r.david.murray |
| Recipients |
docs@python, eric.araujo, lebigot, mherrmann.at, r.david.murray, terry.reedy, vstinner |
| Date |
2012年06月12日.13:26:08 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1339507570.11.0.0160915347923.issue12982@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|