Message162153
Basically pkgutil kind of handles importers properly, kind of doesn't. So if a module defined a __loader__ it will use it, but all the rest of its code assumes it uses only the loaders defined in pkgutil.
The problem here is that pkgutil.walk_packages() ends up calling iter_importer_modules() which only returns anything of consequence if the loader has iter_modules() defined which is a non-standard API requirement that only pkgutil loaders has implemented. Basically the docs for pkgutil were incorrect in not specifying that the walk only works for loaders that define iter_modules(). |
|
Date |
User |
Action |
Args |
2012-06-02 17:40:13 | brett.cannon | set | recipients:
+ brett.cannon, eric.smith, Arfrever, pnasrat, Marc.Abramowitz, Ronan.Lamy |
2012-06-02 17:40:12 | brett.cannon | set | messageid: <1338658812.91.0.873504271911.issue14982@psf.upfronthosting.co.za> |
2012-06-02 17:40:12 | brett.cannon | link | issue14982 messages |
2012-06-02 17:40:11 | brett.cannon | create | |
|