Implement the more specific PEP 302 semantics for loaders and what happens upon

load failure in relation to reloads. Also expose
importlib.util.module_for_loader to handle all of the details of this along
with making sure all current loaders behave nicely.
This commit is contained in:
Brett Cannon 2009-02-17 02:45:03 +00:00
parent 0586ed6288
commit d2e7b33815
5 changed files with 159 additions and 62 deletions

2
Lib/importlib/util.py Normal file
View file

@ -0,0 +1,2 @@
"""Utility code for constructing importers, etc."""
from ._bootstrap import module_for_loader