Commit 51d4aabf authored by Brett Cannon's avatar Brett Cannon

Add the terms "finder", "loader", and "importer" to the glossary.

parent 41faa543
...@@ -179,6 +179,11 @@ Glossary ...@@ -179,6 +179,11 @@ Glossary
A module written in C or C++, using Python's C API to interact with the core and A module written in C or C++, using Python's C API to interact with the core and
with user code. with user code.
finder
An object that tries to find the :term:`loader` for a module. It must
implement a method named :meth:`find_module`. See :pep:`302` for
details.
floor division floor division
Mathematical division discarding any remainder. The floor division Mathematical division discarding any remainder. The floor division
operator is ``//``. For example, the expression ``11//4`` evaluates to operator is ``//``. For example, the expression ``11//4`` evaluates to
...@@ -270,6 +275,10 @@ Glossary ...@@ -270,6 +275,10 @@ Glossary
role in places where a constant hash value is needed, for example as a key role in places where a constant hash value is needed, for example as a key
in a dictionary. in a dictionary.
importer
An object that both finds and loads a module; both a
:term:`finder` and :term:`loader` object.
interactive interactive
Python has an interactive interpreter which means you can enter Python has an interactive interpreter which means you can enter
statements and expressions at the interpreter prompt, immediately statements and expressions at the interpreter prompt, immediately
...@@ -351,6 +360,11 @@ Glossary ...@@ -351,6 +360,11 @@ Glossary
clause is optional. If omitted, all elements in ``range(256)`` are clause is optional. If omitted, all elements in ``range(256)`` are
processed. processed.
loader
An object that loads a module. It must define a method named
:meth:`load_module`. A loader is typically returned by a
:term:`finder`. See :pep:`302` for details.
mapping mapping
A container object (such as :class:`dict`) which supports arbitrary key A container object (such as :class:`dict`) which supports arbitrary key
lookups using the special method :meth:`__getitem__`. lookups using the special method :meth:`__getitem__`.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment