• Brett Cannon's avatar
    Issue #15316: Let exceptions raised during imports triggered by the · 12c6bda4
    Brett Cannon yazdı
    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.
    12c6bda4
Adı
Son kayıt (commit)
Son güncelleme
..
__init__.py Loading commit data...
test___package__.py Loading commit data...
test_api.py Loading commit data...
test_caching.py Loading commit data...
test_fromlist.py Loading commit data...
test_meta_path.py Loading commit data...
test_packages.py Loading commit data...
test_path.py Loading commit data...
test_relative_imports.py Loading commit data...
util.py Loading commit data...