[issue15767] add ModuleNotFoundError

Serhiy Storchaka report at bugs.python.org
Sun Feb 17 10:44:32 CET 2013


Serhiy Storchaka added the comment:

from foo import bar

Here bar can be not module, but an attribute of foo (for example, os.path). What error will be raised in this case? Module or attribute - this is an implementation detail; why do we distinguish between these cases?

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15767>
_______________________________________


More information about the Python-bugs-list mailing list