mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Introduce importlib.util.ModuleManager which is a context manager to
handle providing (and cleaning up if needed) the module to be loaded. A future commit will use the context manager in Lib/importlib/_bootstrap.py and thus why the code is placed there instead of in Lib/importlib/util.py.
This commit is contained in:
parent
4dbae88131
commit
a3687f0d68
6 changed files with 3508 additions and 3341 deletions
|
@ -1,5 +1,6 @@
|
|||
"""Utility code for constructing importers, etc."""
|
||||
|
||||
from ._bootstrap import ModuleManager
|
||||
from ._bootstrap import module_for_loader
|
||||
from ._bootstrap import set_loader
|
||||
from ._bootstrap import set_package
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue