Skip to content

Commit 63909cd

Browse files
bpo-37574: Mention helper functions for find_spec documentation (GH-14739)
(cherry picked from commit 9cbb97b) Co-authored-by: jdkandersson <[email protected]>
1 parent 78c3949 commit 63909cd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Doc/library/importlib.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ ABC hierarchy::
274274
parent package. If a spec cannot be found, ``None`` is returned.
275275
When passed in, ``target`` is a module object that the finder may
276276
use to make a more educated guess about what spec to return.
277+
:func:`importlib.util.spec_from_loader` may be useful for implementing
278+
concrete ``MetaPathFinders``.
277279

278280
.. versionadded:: 3.4
279281

@@ -323,7 +325,8 @@ ABC hierarchy::
323325
within the :term:`path entry` to which it is assigned. If a spec
324326
cannot be found, ``None`` is returned. When passed in, ``target``
325327
is a module object that the finder may use to make a more educated
326-
guess about what spec to return.
328+
guess about what spec to return. :func:`importlib.util.spec_from_loader`
329+
may be useful for implementing concrete ``PathEntryFinders``.
327330

328331
.. versionadded:: 3.4
329332

0 commit comments

Comments
 (0)