summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc_data
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-08-24 22:25:59 (GMT)
committerBrett Cannon <brett@python.org>2012-08-24 22:25:59 (GMT)
commit12c6bda4f0e96c4bea285d8c664044753ea81bf1 (patch)
tree8f7f0d38129542f4c8388c4ad20863ee9c457df9 /Lib/pydoc_data
parent7a54d16dc5684a2279bf3bd1e6bbb10c74c09850 (diff)
downloadcpython-12c6bda4f0e96c4bea285d8c664044753ea81bf1.zip
cpython-12c6bda4f0e96c4bea285d8c664044753ea81bf1.tar.gz
cpython-12c6bda4f0e96c4bea285d8c664044753ea81bf1.tar.bz2
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.
Diffstat (limited to 'Lib/pydoc_data')
0 files changed, 0 insertions, 0 deletions