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 Alexandre.Badez, barry, eric.araujo, eric.snow, ncoghlan, pje
Date 2011-11-29.12:50:45
SpamBayes Score 8.212839e-08
Marked as misclassified No
Message-id <1322571045.82.0.958223705822.issue11374@psf.upfronthosting.co.za>
In-reply-to
Content
.pyo files are used if sys.dont_write_bytecode is false and sys.flags.optimize is >= 1 (IOW, true).

For Python 3.2 and 3.3, imp.cache_from_source should be used to get the right paths (see PEP 3147).

Before you put more work into this, it would be nice to get confirmation from one import expert that the bug is valid: I know the import system only superficially, and I’m not sure that package/__init__.pyc / .pyo is supported by import (if not, then pkgutil should also not support it).
History
Date User Action Args
2011-11-29 12:50:46eric.araujosetrecipients: + eric.araujo, barry, pje, ncoghlan, Alexandre.Badez, eric.snow
2011-11-29 12:50:45eric.araujosetmessageid: <1322571045.82.0.958223705822.issue11374@psf.upfronthosting.co.za>
2011-11-29 12:50:45eric.araujolinkissue11374 messages
2011-11-29 12:50:45eric.araujocreate