Message289737
The same applies to pyexpat.model.
It seems like pyexpat is the only builtin module which has submodules (errors, model).
Normally, as I understand it, the module gets imported given a spec and the import machinery ensures that this spec ends up in the __spec__ attribute of the module. But in this case only pyexpat gets imported by importlib. The submodules are added when initializing the module.
Also, importlib's BuiltinImporter assumes that a builtin module is never a package. Is this reasonable in this case? |
|
Date |
User |
Action |
Args |
2017-03-16 22:35:12 | mjacob | set | recipients:
+ mjacob |
2017-03-16 22:35:12 | mjacob | set | messageid: <1489703712.88.0.588940526219.issue29830@psf.upfronthosting.co.za> |
2017-03-16 22:35:12 | mjacob | link | issue29830 messages |
2017-03-16 22:35:12 | mjacob | create | |
|