Staging
v0.5.1
swh:1:snp:635f4099902912592851108bcac178ff574f7c5f
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
History
Tip revision: 550e4673be538d98b6ddf5550b3922539cf5c4b2 authored by Victor Stinner on 08 December 2020, 23:32:54 UTC
bpo-32381: Add _PyRun_SimpleFileObject() (GH-23709)
Tip revision: 550e467
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

README

back to top