@@ -315,6 +315,13 @@ Glossary
315
315
role in places where a constant hash value is needed, for example as a key
316
316
in a dictionary.
317
317
318
+ import path
319
+ A list of locations (or :term: `path entries <path entry> `) that are
320
+ searched by the :term: `path importer ` for modules to import. During
321
+ import, this list of locations usually comes from :data: `sys.path `, but
322
+ for subpackages it may also come from the parent package's ``__path__ ``
323
+ attribute.
324
+
318
325
importing
319
326
The process by which Python code in one module is made available to
320
327
Python code in another module.
@@ -446,8 +453,8 @@ Glossary
446
453
447
454
meta path finder
448
455
A finder returned by a search of :data: `sys.meta_path `. Meta path
449
- finders are related to, but different from :term: `sys path finders <sys
450
- path finder> `.
456
+ finders are related to, but different from :term: `path entry finders
457
+ < path entry finder> `.
451
458
452
459
metaclass
453
460
The class of a class. Class definitions create a class name, a class
@@ -541,9 +548,23 @@ Glossary
541
548
subpackages. Technically, a package is a Python module with an
542
549
``__path__ `` attribute.
543
550
551
+ path entry
552
+ A single location on the :term: `import path ` which the :term: `path
553
+ importer ` consults to find modules for importing.
554
+
555
+ path entry finder
556
+ A :term: `finder ` returned by a callable on :data: `sys.path_hooks `
557
+ (i.e. a :term: `path entry hook `) which knows how to locate modules given
558
+ a :term: `path entry `.
559
+
560
+ path entry hook
561
+ A callable on the :data: `sys.path_hook ` list which returns a :term: `path
562
+ entry finder ` if it knows how to find modules on a specific :term: `path
563
+ entry `.
564
+
544
565
path importer
545
- A built-in :term: ` finder ` / :term: `loader ` that knows how to find and
546
- load modules from the file system .
566
+ One of the default :term: `meta path finders <meta path finder> ` which
567
+ searches an :term: ` import path ` for modules .
547
568
548
569
portion
549
570
A set of files in a single directory (possibly stored in a zip file)
@@ -671,11 +692,6 @@ Glossary
671
692
:meth: `~collections.somenamedtuple._asdict `. Examples of struct sequences
672
693
include :data: `sys.float_info ` and the return value of :func: `os.stat `.
673
694
674
- sys path finder
675
- A finder returned by a search of :data: `sys.path ` by the :term: `path
676
- importer `. Sys path finders are related to, but different from
677
- :term: `meta path finders <meta path finder> `.
678
-
679
695
triple-quoted string
680
696
A string which is bound by three instances of either a quotation mark
681
697
(") or an apostrophe ('). While they don't provide any functionality
0 commit comments