Message182271
Eric: knock yourself out. =)
Serhiy: What exception is raised in that situation is controlled by the eval loop, not importlib so that would be a separate change. But regardless, there is no way to infer whether you expected an attribute or module to be there, just that you were after something that didn't exist. But I would argue most people import at the module level and not the attribute level, and so raising an ModuleNotFoundError would be acceptable. |
|
Date |
User |
Action |
Args |
2013-02-17 14:43:55 | brett.cannon | set | recipients:
+ brett.cannon, barry, ezio.melotti, cvrebert, asvetlov, chris.jerdonek, maker, eric.snow, serhiy.storchaka |
2013-02-17 14:43:55 | brett.cannon | set | messageid: <1361112235.88.0.0382764795675.issue15767@psf.upfronthosting.co.za> |
2013-02-17 14:43:55 | brett.cannon | link | issue15767 messages |
2013-02-17 14:43:55 | brett.cannon | create | |
|