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 chris.jerdonek
Recipients Arfrever, asvetlov, barry, brett.cannon, chris.jerdonek, cvrebert, eric.snow, ezio.melotti, pitrou, serhiy.storchaka
Date 2013-02-18.20:10:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361218246.77.0.617797593094.issue15767@psf.upfronthosting.co.za>
In-reply-to
Content
>> from foo import bar
>> Here bar can be not module, but an attribute of foo (for example, os.path).
> Serhiy: What exception is raised in that situation is controlled by the eval loop, not importlib so that would be a separate change.

Just to clarify from this exchange, is there a chance we will use this same exception type (perhaps in a later change) in cases where bar is not found?  If so, I think it's worth considering something like "NotFoundImportError" or "ImportNotFoundError" that doesn't single out module.  Importing classes, etc. is quite a common pattern (e.g. examples appear in PEP 8).
History
Date User Action Args
2013-02-18 20:10:46chris.jerdoneksetrecipients: + chris.jerdonek, barry, brett.cannon, pitrou, ezio.melotti, Arfrever, cvrebert, asvetlov, eric.snow, serhiy.storchaka
2013-02-18 20:10:46chris.jerdoneksetmessageid: <1361218246.77.0.617797593094.issue15767@psf.upfronthosting.co.za>
2013-02-18 20:10:46chris.jerdoneklinkissue15767 messages
2013-02-18 20:10:46chris.jerdonekcreate