[issue15295] Import machinery documentation
Barry A. Warsaw
report at bugs.python.org
Tue Jul 31 21:52:53 CEST 2012
Barry A. Warsaw added the comment:
I think I was unclear in my previous follow up. Here are the objects
involved, taken from the glossary.
import path
A list of locations (or :term:`path entries <path entry>`) that are
searched by the :term:`path importer` for modules to import. During
import, this list of locations usually comes from :data:`sys.path`, but
for subpackages it may also come from the parent package's ``__path__``
attribute.
meta path finder
A finder returned by a search of :data:`sys.meta_path`. Meta path
finders are related to, but different from :term:`path entry finders
<path entry finder>`.
path entry
A single location on the :term:`import path` which the :term:`path
importer` consults to find modules for importing.
path entry finder
A :term:`finder` returned by a callable on :data:`sys.path_hooks`
(i.e. a :term:`path entry hook`) which knows how to locate modules given
a :term:`path entry`.
path entry hook
A callable on the :data:`sys.path_hook` list which returns a :term:`path
entry finder` if it knows how to find modules on a specific :term:`path
entry`.
path importer
One of the default :term:`meta path finders <meta path finder>` which
searches an :term:`import path` for modules.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15295>
_______________________________________
More information about the Python-bugs-list
mailing list