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 lebigot
Recipients docs@python, eric.araujo, lebigot, mherrmann.at, r.david.murray, terry.reedy, vstinner
Date 2012-06-12.13:28:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <B45075F8-1B00-456F-A4CA-E72876CE167D@normalesup.org>
In-reply-to <1339507550.31.0.900829147792.issue12982@psf.upfronthosting.co.za>
Content
Hi Michael,

Thank you for your message.

You are mentioning the suggestion of "the other Eric" (Araujo). My suggestion was to rename your .pyo files as .pyc files; it is hackish (according to a previous post from Eric Araujo), but might save you some trouble, on the short term, as .pyc do not need -O.

Best wishes,

EOL

On Jun 12, 2012, at 21:25, Michael Herrmann wrote:

> 
> Michael Herrmann <mherrmann.at@gmail.com> added the comment:
> 
> Hi Eric,
> 
> thank you for your quick reply. I'm not the first one who encounters this problem and in my opinion it is simply counter-intuitive that you cannot read a mixture of .pyo and .pyc files. That is why I think that my proposed change is valuable. In the meantime, I will follow your suggestion and try to use the imp-module to load the .pyo-files myself. Thank you!
> 
> Best regards,
> Michael
> 
> ----------
> 
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue12982>
> _______________________________________
History
Date User Action Args
2012-06-12 13:28:37lebigotsetrecipients: + lebigot, terry.reedy, vstinner, eric.araujo, r.david.murray, docs@python, mherrmann.at
2012-06-12 13:28:36lebigotlinkissue12982 messages
2012-06-12 13:28:36lebigotcreate