diff options
author | jdkandersson <51036209+jdkandersson@users.noreply.github.com> | 2019-09-10 16:06:22 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@python.org> | 2019-09-10 16:06:22 (GMT) |
commit | 9cbb97b29eac4b23e916a3233f26b60ac69e335b (patch) | |
tree | 4c0db7cffdf488175c827a145118c6ff45578043 | |
parent | 2ec70102066fe5534f1a62e8f496d2005e1697db (diff) | |
download | cpython-9cbb97b29eac4b23e916a3233f26b60ac69e335b.zip cpython-9cbb97b29eac4b23e916a3233f26b60ac69e335b.tar.gz cpython-9cbb97b29eac4b23e916a3233f26b60ac69e335b.tar.bz2 |
bpo-37574: Mention helper functions for find_spec documentation (GH-14739)
-rw-r--r-- | Doc/library/importlib.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst index 0976360..54ca8b8 100644 --- a/Doc/library/importlib.rst +++ b/Doc/library/importlib.rst @@ -274,6 +274,8 @@ ABC hierarchy:: parent package. If a spec cannot be found, ``None`` is returned. When passed in, ``target`` is a module object that the finder may use to make a more educated guess about what spec to return. + :func:`importlib.util.spec_from_loader` may be useful for implementing + concrete ``MetaPathFinders``. .. versionadded:: 3.4 @@ -323,7 +325,8 @@ ABC hierarchy:: within the :term:`path entry` to which it is assigned. If a spec cannot be found, ``None`` is returned. When passed in, ``target`` is a module object that the finder may use to make a more educated - guess about what spec to return. + guess about what spec to return. :func:`importlib.util.spec_from_loader` + may be useful for implementing concrete ``PathEntryFinders``. .. versionadded:: 3.4 |