]> granicus.if.org Git - python/commitdiff
Closes #19178: backport entries for "module" and "package" from 3.x glossary. Patch...
authorGeorg Brandl <georg@python.org>
Tue, 8 Oct 2013 06:05:33 +0000 (08:05 +0200)
committerGeorg Brandl <georg@python.org>
Tue, 8 Oct 2013 06:05:33 +0000 (08:05 +0200)
Doc/glossary.rst

index 3af49fd0297c5e64c108d6c57c27a3b2d630d843..5ae957871a3d38a2ae0f54a5245892e5476e8ef2 100644 (file)
@@ -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