Skip to content

Commit 51d4aab

Browse files
committed
Add the terms "finder", "loader", and "importer" to the glossary.
1 parent 41faa54 commit 51d4aab

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Doc/glossary.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ Glossary
179179
A module written in C or C++, using Python's C API to interact with the core and
180180
with user code.
181181

182+
finder
183+
An object that tries to find the :term:`loader` for a module. It must
184+
implement a method named :meth:`find_module`. See :pep:`302` for
185+
details.
186+
182187
floor division
183188
Mathematical division discarding any remainder. The floor division
184189
operator is ``//``. For example, the expression ``11//4`` evaluates to
@@ -270,6 +275,10 @@ Glossary
270275
role in places where a constant hash value is needed, for example as a key
271276
in a dictionary.
272277

278+
importer
279+
An object that both finds and loads a module; both a
280+
:term:`finder` and :term:`loader` object.
281+
273282
interactive
274283
Python has an interactive interpreter which means you can enter
275284
statements and expressions at the interpreter prompt, immediately
@@ -351,6 +360,11 @@ Glossary
351360
clause is optional. If omitted, all elements in ``range(256)`` are
352361
processed.
353362

363+
loader
364+
An object that loads a module. It must define a method named
365+
:meth:`load_module`. A loader is typically returned by a
366+
:term:`finder`. See :pep:`302` for details.
367+
354368
mapping
355369
A container object (such as :class:`dict`) which supports arbitrary key
356370
lookups using the special method :meth:`__getitem__`.

0 commit comments

Comments
 (0)