Skip to content

Commit bcce125

Browse files
committed
Closes #19178: some more cross-references about packages in glossary. Patch by Berker Peksag.
1 parent 59c900d commit bcce125

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Doc/glossary.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,8 @@ Glossary
520520
have a namespace containing arbitrary Python objects. Modules are loaded
521521
into Python by the process of :term:`importing`.
522522

523+
See also :term:`package`.
524+
523525
MRO
524526
See :term:`method resolution order`.
525527

@@ -558,6 +560,8 @@ Glossary
558560
and specifically are not like a :term:`regular package` because they
559561
have no ``__init__.py`` file.
560562

563+
See also :term:`module`.
564+
561565
nested scope
562566
The ability to refer to a variable in an enclosing definition. For
563567
instance, a function defined inside another function can refer to
@@ -579,10 +583,12 @@ Glossary
579583
class`.
580584

581585
package
582-
A Python module which can contain submodules or recursively,
586+
A Python :term:`module` which can contain submodules or recursively,
583587
subpackages. Technically, a package is a Python module with an
584588
``__path__`` attribute.
585589

590+
See also :term:`regular package` and :term:`namespace package`.
591+
586592
parameter
587593
A named entity in a :term:`function` (or method) definition that
588594
specifies an :term:`argument` (or in some cases, arguments) that the
@@ -728,6 +734,8 @@ Glossary
728734
A traditional :term:`package`, such as a directory containing an
729735
``__init__.py`` file.
730736

737+
See also :term:`namespace package`.
738+
731739
__slots__
732740
A declaration inside a class that saves memory by pre-declaring space for
733741
instance attributes and eliminating instance dictionaries. Though

0 commit comments

Comments
 (0)