summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-10-08 06:05:33 (GMT)
committerGeorg Brandl <georg@python.org>2013-10-08 06:05:33 (GMT)
commit2808a1244dc79e411bb79771d60fad3908ca2cc8 (patch)
tree6f5f2712dfa968fec56339463421b803f37b093f
parent9f572782514c62d4d542bc873fc88d08993ef41b (diff)
downloadcpython-2808a1244dc79e411bb79771d60fad3908ca2cc8.zip
cpython-2808a1244dc79e411bb79771d60fad3908ca2cc8.tar.gz
cpython-2808a1244dc79e411bb79771d60fad3908ca2cc8.tar.bz2
Closes #19178: backport entries for "module" and "package" from 3.x glossary. Patch by Berker Peksag.
-rw-r--r--Doc/glossary.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index 3af49fd..5ae9578 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -365,6 +365,10 @@ Glossary
fraction. Integer division can be forced by using the ``//`` operator
instead of the ``/`` operator. See also :term:`__future__`.
+ importing
+ The process by which Python code in one module is made available to
+ Python code in another module.
+
importer
An object that both finds and loads a module; both a
:term:`finder` and :term:`loader` object.
@@ -509,6 +513,13 @@ Glossary
for a member during lookup. See `The Python 2.3 Method Resolution Order
<http://www.python.org/download/releases/2.3/mro/>`_.
+ module
+ An object that serves as an organizational unit of Python code. Modules
+ have a namespace containing arbitrary Python objects. Modules are loaded
+ into Python by the process of :term:`importing`.
+
+ See also :term:`package`.
+
MRO
See :term:`method resolution order`.
@@ -562,6 +573,11 @@ Glossary
(methods). Also the ultimate base class of any :term:`new-style
class`.
+ package
+ A Python :term:`module` which can contain submodules or recursively,
+ subpackages. Technically, a package is a Python module with an
+ ``__path__`` attribute.
+
parameter
A named entity in a :term:`function` (or method) definition that
specifies an :term:`argument` (or in some cases, arguments) that the