Éric Araujo <mer...@netwok.org> added the comment:

.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).

----------
nosy: +barry, ncoghlan, pje

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11374>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to