From 2808a1244dc79e411bb79771d60fad3908ca2cc8 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 8 Oct 2013 08:05:33 +0200 Subject: [PATCH] Closes #19178: backport entries for "module" and "package" from 3.x glossary. Patch by Berker Peksag. --- Doc/glossary.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 3af49fd029..5ae957871a 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 `_. + 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 -- 2.50.1