[docs] [issue12982] Document that importing .pyo files needs python -O
Eric O. LEBIGOT
report at bugs.python.org
Tue Jun 12 15:28:37 CEST 2012
Eric O. LEBIGOT <eric.lebigot at normalesup.org> added the comment:
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 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 at bugs.python.org>
> <http://bugs.python.org/issue12982>
> _______________________________________
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12982>
_______________________________________
More information about the docs
mailing list