Staging
v0.5.0
v0.5.0
https://github.com/python/cpython
Revision 12c6bda4f0e96c4bea285d8c664044753ea81bf1 authored by Brett Cannon on 24 August 2012, 22:25:59 UTC, committed by Brett Cannon on 24 August 2012, 22:25:59 UTC
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.
1 parent 7a54d16
Tip revision: 12c6bda4f0e96c4bea285d8c664044753ea81bf1 authored by Brett Cannon on 24 August 2012, 22:25:59 UTC
Issue #15316: Let exceptions raised during imports triggered by the
Issue #15316: Let exceptions raised during imports triggered by the
Tip revision: 12c6bda
File | Mode | Size |
---|---|---|
Doc | ||
Grammar | ||
Include | ||
Lib | ||
Mac | ||
Misc | ||
Modules | ||
Objects | ||
PC | ||
PCbuild | ||
Parser | ||
Python | ||
Tools | ||
.bzrignore | -rw-r--r-- | 584 bytes |
.gitignore | -rw-r--r-- | 865 bytes |
.hgeol | -rw-r--r-- | 721 bytes |
.hgignore | -rw-r--r-- | 1.2 KB |
.hgtags | -rw-r--r-- | 5.1 KB |
.hgtouch | -rw-r--r-- | 467 bytes |
LICENSE | -rw-r--r-- | 14.6 KB |
Makefile.pre.in | -rw-r--r-- | 46.5 KB |
README | -rw-r--r-- | 6.4 KB |
config.guess | -rwxr-xr-x | 43.8 KB |
config.sub | -rwxr-xr-x | 34.6 KB |
configure | -rwxr-xr-x | 428.1 KB |
configure.ac | -rw-r--r-- | 130.9 KB |
install-sh | -rwxr-xr-x | 7.0 KB |
pyconfig.h.in | -rw-r--r-- | 39.1 KB |
setup.py | -rw-r--r-- | 91.4 KB |
Computing file changes ...