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 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.
History
Date User Action Args
2012-06-12 13:26:10r.david.murraysetrecipients: + r.david.murray, terry.reedy, vstinner, lebigot, eric.araujo, docs@python, mherrmann.at
2012-06-12 13:26:10r.david.murraysetmessageid: <1339507570.11.0.0160915347923.issue12982@psf.upfronthosting.co.za>
2012-06-12 13:26:09r.david.murraylinkissue12982 messages
2012-06-12 13:26:08r.david.murraycreate