@@ -209,9 +209,9 @@ Glossary
209209
210210 finder
211211 An object that tries to find the :term: `loader ` for a module. It must
212- implement a method named :meth: `find_module `. See :pep: ` 302 ` for
213- details and :class: ` importlib.abc.Finder ` for an
214- :term: `abstract base class `.
212+ implement either a method named :meth: `find_loader ` or a method named
213+ :meth: ` find_module `. See :pep: ` 302 ` and :pep: ` 420 ` for details and
214+ :class: ` importlib.abc.Finder ` for an : term: `abstract base class `.
215215
216216 floor division
217217 Mathematical division that rounds down to nearest integer. The floor
@@ -315,6 +315,10 @@ Glossary
315315 role in places where a constant hash value is needed, for example as a key
316316 in a dictionary.
317317
318+ importing
319+ The process by which Python code in one module is made available to
320+ Python code in another module.
321+
318322 importer
319323 An object that both finds and loads a module; both a
320324 :term: `finder ` and :term: `loader ` object.
@@ -440,6 +444,11 @@ Glossary
440444 include :class: `dict `, :class: `collections.defaultdict `,
441445 :class: `collections.OrderedDict ` and :class: `collections.Counter `.
442446
447+ meta path finder
448+ A finder returned by a search of :data: `sys.meta_path `. Meta path
449+ finders are related to, but different from :term: `sys path finders <sys
450+ path finder> `.
451+
443452 metaclass
444453 The class of a class. Class definitions create a class name, a class
445454 dictionary, and a list of base classes. The metaclass is responsible for
@@ -464,6 +473,11 @@ Glossary
464473 for a member during lookup. See `The Python 2.3 Method Resolution Order
465474 <http://www.python.org/download/releases/2.3/mro/> `_.
466475
476+ module
477+ An object that serves as an organizational unit of Python code. Modules
478+ have a namespace contain arbitrary Python objects. Modules are loaded
479+ into Python by the process of :term: `importing `.
480+
467481 MRO
468482 See :term: `method resolution order `.
469483
@@ -496,6 +510,12 @@ Glossary
496510 functions are implemented by the :mod: `random ` and :mod: `itertools `
497511 modules, respectively.
498512
513+ namespace package
514+ A :pep: `420 ` :term: `package ` which serves only as a container for
515+ subpackages. Namespace packages may have no physical representation,
516+ and specifically are not like a :term: `regular package ` because they
517+ have no ``__init__.py `` file.
518+
499519 nested scope
500520 The ability to refer to a variable in an enclosing definition. For
501521 instance, a function defined inside another function can refer to
@@ -516,6 +536,19 @@ Glossary
516536 (methods). Also the ultimate base class of any :term: `new-style
517537 class `.
518538
539+ package
540+ A Python module which can contain submodules or recursively,
541+ subpackages. Technically, a package is a Python module with an
542+ ``__path__ `` attribute.
543+
544+ path importer
545+ A built-in :term: `finder ` / :term: `loader ` that knows how to find and
546+ load modules from the file system.
547+
548+ portion
549+ A set of files in a single directory (possibly stored in a zip file)
550+ that contribute to a namespace package, as defined in :pep: `420 `.
551+
519552 positional argument
520553 The arguments assigned to local names inside a function or method,
521554 determined by the order in which they were given in the call. ``* `` is
@@ -524,22 +557,22 @@ Glossary
524557 :term: `argument `.
525558
526559 provisional package
527- A provisional package is one which has been deliberately excluded from the
528- standard library's backwards compatibility guarantees. While major
560+ A provisional package is one which has been deliberately excluded from
561+ the standard library's backwards compatibility guarantees. While major
529562 changes to such packages are not expected, as long as they are marked
530563 provisional, backwards incompatible changes (up to and including removal
531564 of the package) may occur if deemed necessary by core developers. Such
532565 changes will not be made gratuitously -- they will occur only if serious
533566 flaws are uncovered that were missed prior to the inclusion of the
534567 package.
535568
536- This process allows the standard library to continue to evolve over time,
537- without locking in problematic design errors for extended periods of time.
538- See :pep: `411 ` for more details.
569+ This process allows the standard library to continue to evolve over
570+ time, without locking in problematic design errors for extended periods
571+ of time. See :pep: `411 ` for more details.
539572
540573 Python 3000
541- Nickname for the Python 3.x release line (coined long ago when the release
542- of version 3 was something in the distant future.) This is also
574+ Nickname for the Python 3.x release line (coined long ago when the
575+ release of version 3 was something in the distant future.) This is also
543576 abbreviated "Py3k".
544577
545578 Pythonic
@@ -576,6 +609,14 @@ Glossary
576609 >>> C.D.meth.__qualname__
577610 'C.D.meth'
578611
612+ When used to refer to modules, the *fully qualified name * means the
613+ entire dotted path to the module, including any parent packages,
614+ e.g. ``email.mime.text ``::
615+
616+ >>> import email.mime.text
617+ >>> email.mime.text.__name__
618+ 'email.mime.text'
619+
579620 reference count
580621 The number of references to an object. When the reference count of an
581622 object drops to zero, it is deallocated. Reference counting is
@@ -584,6 +625,10 @@ Glossary
584625 :func: `~sys.getrefcount ` function that programmers can call to return the
585626 reference count for a particular object.
586627
628+ regular package
629+ A traditional :term: `package `, such as a directory containing an
630+ ``__init__.py `` file.
631+
587632 __slots__
588633 A declaration inside a class that saves memory by pre-declaring space for
589634 instance attributes and eliminating instance dictionaries. Though
@@ -626,6 +671,11 @@ Glossary
626671 :meth: `~collections.somenamedtuple._asdict `. Examples of struct sequences
627672 include :data: `sys.float_info ` and the return value of :func: `os.stat `.
628673
674+ sys path finder
675+ A finder returned by a search of :data: `sys.path ` by the :term: `path
676+ importer `. Sys path finders are related to, but different from
677+ :term: `meta path finders <meta path finder> `.
678+
629679 triple-quoted string
630680 A string which is bound by three instances of either a quotation mark
631681 (") or an apostrophe ('). While they don't provide any functionality
0 commit comments