12c6bda4f0
fromlist of __import__ propagate. The problem previously was that if something listed in fromlist didn't exist then that's okay. The fix for that was too broad in terms of catching ImportError. The trick with the solution to this issue is that the proper refactoring of import thanks to importlib doesn't allow for a way to distinguish (portably) between an ImportError because finders couldn't find a loader, or a loader raised the exception. In Python 3.4 the hope is to introduce a new exception (e.g. ModuleNotFound) to make it clean to differentiate why ImportError was raised. |
||
---|---|---|
.. | ||
builtin | ||
extension | ||
frozen | ||
import_ | ||
source | ||
__init__.py | ||
__main__.py | ||
abc.py | ||
regrtest.py | ||
test_abc.py | ||
test_api.py | ||
test_locks.py | ||
test_util.py | ||
util.py |