This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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.
History
Date User Action Args
2012-06-12 13:15:58eric.araujosetrecipients: + eric.araujo, terry.reedy, vstinner, lebigot, docs@python, mherrmann.at
2012-06-12 13:15:57eric.araujosetmessageid: <1339506957.81.0.336240976747.issue12982@psf.upfronthosting.co.za>
2012-06-12 13:15:57eric.araujolinkissue12982 messages
2012-06-12 13:15:56eric.araujocreate