Commit 17738111 authored by Brett Cannon's avatar Brett Cannon

Add a reference to module_to_load

parent c7a28256
...@@ -242,8 +242,7 @@ ABC hierarchy:: ...@@ -242,8 +242,7 @@ ABC hierarchy::
from the import. If the loader inserted a module and the load fails, it from the import. If the loader inserted a module and the load fails, it
must be removed by the loader from :data:`sys.modules`; modules already must be removed by the loader from :data:`sys.modules`; modules already
in :data:`sys.modules` before the loader began execution should be left in :data:`sys.modules` before the loader began execution should be left
alone. The :func:`importlib.util.module_for_loader` decorator handles alone (see :func:`importlib.util.module_to_load`).
all of these details.
The loader should set several attributes on the module. The loader should set several attributes on the module.
(Note that some of these attributes can change when a module is (Note that some of these attributes can change when a module is
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment