]> granicus.if.org Git - python/commit
Introduce importlib.abc. The module contains various ABCs related to imports
authorBrett Cannon <bcannon@gmail.com>
Mon, 9 Mar 2009 03:35:50 +0000 (03:35 +0000)
committerBrett Cannon <bcannon@gmail.com>
Mon, 9 Mar 2009 03:35:50 +0000 (03:35 +0000)
commit2a922ed6adf28fabd10cb852133be5aeeb906aa5
tree233b1352e48970174dade4ca795d853b8cc6e501
parentaa1c8d88992d482f90268f2352fccb6e74d87279
Introduce importlib.abc. The module contains various ABCs related to imports
(mostly stuff specified by PEP 302). There are two ABCs, PyLoader and
PyPycLoader, which help with implementing source and source/bytecode loaders by
implementing load_module in terms of other methods. This removes a lot of
gritty details loaders typically have to worry about.
Doc/library/importlib.rst
Lib/importlib/NOTES
Lib/importlib/_bootstrap.py
Lib/importlib/abc.py [new file with mode: 0644]
Lib/importlib/test/abc.py
Lib/importlib/test/source/test_abc_loader.py [new file with mode: 0644]
Lib/importlib/test/source/test_file_loader.py [moved from Lib/importlib/test/source/test_loader.py with 67% similarity]
Lib/importlib/test/source/util.py
Lib/importlib/test/test_abc.py [new file with mode: 0644]