Author mjacob
Recipients mjacob
Date 2017-03-16.22:35:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1489703712.88.0.588940526219.issue29830@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2017-03-16 22:35:12mjacobsetrecipients: + mjacob
2017-03-16 22:35:12mjacobsetmessageid: <1489703712.88.0.588940526219.issue29830@psf.upfronthosting.co.za>
2017-03-16 22:35:12mjacoblinkissue29830 messages
2017-03-16 22:35:12mjacobcreate