cpython/Lib/importlib
Brett Cannon 12c6bda4f0 Issue #15316: Let exceptions raised during imports triggered by the
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.
2012-08-24 18:25:59 -04:00
..
__init__.py Issue #15502: Finish bringing importlib.abc in line with the current 2012-08-10 12:21:12 -04:00
_bootstrap.py Issue #15316: Let exceptions raised during imports triggered by the 2012-08-24 18:25:59 -04:00
abc.py Issue #15502: Refactor some code. 2012-08-10 17:41:23 -04:00
machinery.py Issue #15576: Allow extension modules to be a package's __init__ 2012-08-10 13:47:54 -04:00
util.py Add importlib.util.resolve_name(). 2012-05-13 13:45:09 -04:00