@@ -308,10 +308,14 @@ Glossary
308
308
A synonym for :term: `file object `.
309
309
310
310
finder
311
- An object that tries to find the :term: `loader ` for a module. It must
312
- implement either a method named :meth: `find_loader ` or a method named
313
- :meth: `find_module `. See :pep: `302 ` and :pep: `420 ` for details and
314
- :class: `importlib.abc.Finder ` for an :term: `abstract base class `.
311
+ An object that tries to find the :term: `loader ` for a module that is
312
+ being imported.
313
+
314
+ Since Python 3.3, there are two types of finder: :term: `meta path finders
315
+ <meta path finder> ` for use with :data: `sys.meta_path `, and :term: `path
316
+ entry finders <path entry finder> ` for use with :data: `sys.path_hooks `.
317
+
318
+ See :pep: `302 `, :pep: `420 ` and :pep: `451 ` for much more detail.
315
319
316
320
floor division
317
321
Mathematical division that rounds down to nearest integer. The floor
@@ -593,10 +597,13 @@ Glossary
593
597
:class: `collections.OrderedDict ` and :class: `collections.Counter `.
594
598
595
599
meta path finder
596
- A finder returned by a search of :data: `sys.meta_path `. Meta path
600
+ A :term: ` finder ` returned by a search of :data: `sys.meta_path `. Meta path
597
601
finders are related to, but different from :term: `path entry finders
598
602
<path entry finder> `.
599
603
604
+ See :class: `importlib.abc.MetaPathFinder ` for the methods that meta path
605
+ finders implement.
606
+
600
607
metaclass
601
608
The class of a class. Class definitions create a class name, a class
602
609
dictionary, and a list of base classes. The metaclass is responsible for
@@ -630,7 +637,7 @@ Glossary
630
637
631
638
module spec
632
639
A namespace containing the import-related information used to load a
633
- module.
640
+ module. An instance of :class: ` importlib.machinery.ModuleSpec `.
634
641
635
642
MRO
636
643
See :term: `method resolution order `.
@@ -757,6 +764,9 @@ Glossary
757
764
(i.e. a :term: `path entry hook `) which knows how to locate modules given
758
765
a :term: `path entry `.
759
766
767
+ See :class: `importlib.abc.PathEntryFinder ` for the methods that path entry
768
+ finders implement.
769
+
760
770
path entry hook
761
771
A callable on the :data: `sys.path_hook ` list which returns a :term: `path
762
772
entry finder ` if it knows how to find modules on a specific :term: `path
0 commit comments