]> granicus.if.org Git - python/commit
Rewrite the code implementing __import__ for importlib. Now it is much simpler
authorBrett Cannon <bcannon@gmail.com>
Sat, 7 Feb 2009 01:15:27 +0000 (01:15 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sat, 7 Feb 2009 01:15:27 +0000 (01:15 +0000)
commit2c318a1390e1a84c78d6f0cacaee1d21cc459234
tree97f2579de870e21766febabe4acaaf53b8cd9eb9
parent887b3f2625404f3835d47a63ae7e0ac4ee638cb6
Rewrite the code implementing __import__ for importlib. Now it is much simpler
and relies much more on meta path finders to abstract out various parts of
import.

As part of this the semantics for import_module tightened up and now follow
__import__ much more closely (biggest thing is that the 'package' argument must
now already be imported, else a SystemError is raised).
Doc/library/importlib.rst
Lib/importlib/NOTES
Lib/importlib/__init__.py
Lib/importlib/_bootstrap.py
Lib/importlib/test/import_/test___package__.py
Lib/importlib/test/import_/test_caching.py
Lib/importlib/test/import_/test_path.py
Lib/importlib/test/import_/util.py
Lib/importlib/test/test_api.py