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 tkhyn
Recipients brett.cannon, eric.snow, ncoghlan, tkhyn
Date 2017-05-23.20:07:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1495570057.14.0.586569112226.issue30436@psf.upfronthosting.co.za>
In-reply-to
Content
Ok, thanks for the reply. Actually the thing that bothered me was the AttributeError exception. I would probably not have opened a ticket should find_spec have raised a ModuleNotFoundError (in line with import_module).

Would you consider catching the AttributeError (which means detecting if parent_name relates to a package) to raise a ModuleNotFoundError instead more appropriate?
History
Date User Action Args
2017-05-23 20:07:37tkhynsetrecipients: + tkhyn, brett.cannon, ncoghlan, eric.snow
2017-05-23 20:07:37tkhynsetmessageid: <1495570057.14.0.586569112226.issue30436@psf.upfronthosting.co.za>
2017-05-23 20:07:37tkhynlinkissue30436 messages
2017-05-23 20:07:37tkhyncreate