Message162670
| Author |
eric.araujo |
| Recipients |
docs@python, eric.araujo, lebigot, mherrmann.at, terry.reedy, vstinner |
| Date |
2012年06月12日.13:15:56 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1339506957.81.0.336240976747.issue12982@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Michael, I don’t think your proposed change would be considered favorably: importing .pyc or .pyo is well defined for CPython and the -O switch is really required for .pyo. However you may be able to import them anyway without any change to Python if you write a custom importer (more info in PEP 302 and the import docs) which reuses the low-level imp module to find and load .pyo files. |
|