summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2016-09-07 07:52:20 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2016-09-07 07:52:20 (GMT)
commit32d374215a514915eca892e5c58a61e9494f37af (patch)
treea5eb60bfa6e5a1f28bedd4042460a22fce720fca /Doc/c-api
parente848cd7605a7891378ef1463e933939aa253df71 (diff)
downloadcpython-32d374215a514915eca892e5c58a61e9494f37af.zip
cpython-32d374215a514915eca892e5c58a61e9494f37af.tar.gz
cpython-32d374215a514915eca892e5c58a61e9494f37af.tar.bz2
[backport to 3.5] - issue26896 - Disambiguate uses of "importer" with "finder".
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/import.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/c-api/import.rst b/Doc/c-api/import.rst
index 2936f4f..5a083ce 100644
--- a/Doc/c-api/import.rst
+++ b/Doc/c-api/import.rst
@@ -207,13 +207,13 @@ Importing Modules
.. c:function:: PyObject* PyImport_GetImporter(PyObject *path)
- Return an importer object for a :data:`sys.path`/:attr:`pkg.__path__` item
+ Return a finder object for a :data:`sys.path`/:attr:`pkg.__path__` item
*path*, possibly by fetching it from the :data:`sys.path_importer_cache`
dict. If it wasn't yet cached, traverse :data:`sys.path_hooks` until a hook
is found that can handle the path item. Return ``None`` if no hook could;
- this tells our caller it should fall back to the built-in import mechanism.
- Cache the result in :data:`sys.path_importer_cache`. Return a new reference
- to the importer object.
+ this tells our caller that the :term:`path based finder` could not find a
+ finder for this path item. Cache the result in :data:`sys.path_importer_cache`.
+ Return a new reference to the finder object.
.. c:function:: void _PyImport_Init()