[issue15295] Import machinery documentation

Eric Snow report at bugs.python.org
Tue Jul 31 07:13:59 CEST 2012


Eric Snow added the comment:

More on import-related terms.

Given Nick's recommendation, here's a broader view, as related to the import state:

sys.meta_path:
  "meta path finder" -> "module loader"
sys.meta_path[-1] (initially):
  "default path importer"
sys.path_hooks:
  "path hook" -> "path entry handler"
sys.path_importer_cache:
  "path entry handler" -> "module loader"

One unfortunate name is "sys.path_importer_cache", which implies either a cache of "path importers" or a cache belonging to "path importer", both of which are still rather ambiguous.

In light of all the above, I've attached an updated patch just for the glossary.  The import system reference then goes further into the protocols that the different objects implement and so forth.

----------
keywords: +patch
Added file: http://bugs.python.org/file26611/issue15295_glossary_refactor.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15295>
_______________________________________


More information about the Python-bugs-list mailing list