summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-01-25 04:21:39 (GMT)
committerBrett Cannon <bcannon@gmail.com>2009-01-25 04:21:39 (GMT)
commit51d4aabf09fa0107a7263a45ad85ab3c0398390b (patch)
tree92df3c8a1fc4ba6a5d8f3b255c9b9ce1477eb325 /Doc
parent41faa543b66431ee5b8c79f70a40ef267615050b (diff)
downloadcpython-51d4aabf09fa0107a7263a45ad85ab3c0398390b.zip
cpython-51d4aabf09fa0107a7263a45ad85ab3c0398390b.tar.gz
cpython-51d4aabf09fa0107a7263a45ad85ab3c0398390b.tar.bz2
Add the terms "finder", "loader", and "importer" to the glossary.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/glossary.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index 9e3cbeb..f8d0e67 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -179,6 +179,11 @@ Glossary
A module written in C or C++, using Python's C API to interact with the core and
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
Mathematical division discarding any remainder. The floor division
operator is ``//``. For example, the expression ``11//4`` evaluates to
@@ -270,6 +275,10 @@ Glossary
role in places where a constant hash value is needed, for example as a key
in a dictionary.
+ importer
+ An object that both finds and loads a module; both a
+ :term:`finder` and :term:`loader` object.
+
interactive
Python has an interactive interpreter which means you can enter
statements and expressions at the interpreter prompt, immediately
@@ -351,6 +360,11 @@ Glossary
clause is optional. If omitted, all elements in ``range(256)`` are
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
A container object (such as :class:`dict`) which supports arbitrary key
lookups using the special method :meth:`__getitem__`.