https://github.com/python/cpython/commit/692d36f1fc5c28dd9997f5ebb855fec20de0c85a
commit: 692d36f1fc5c28dd9997f5ebb855fec20de0c85a
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: methane <[email protected]>
date: 2025-02-15T15:10:24+09:00
summary:
Doc: update term "namespace package" (GH-129251)
(cherry picked from commit e65e9f90626a4c62da4d3500044f354b51e51dbb)
files:
M Doc/glossary.rst
M Doc/reference/import.rst
diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index 858c2b39ee5e33..267d8c0793e5be 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -926,11 +926,16 @@ Glossary
modules, respectively.
namespace package
- A :pep:`420` :term:`package` which serves only as a container for
- subpackages. Namespace packages may have no physical representation,
+ A :term:`package` which serves only as a container for subpackages.
+ Namespace packages may have no physical representation,
and specifically are not like a :term:`regular package` because they
have no ``__init__.py`` file.
+ Namespace packages allow several individually installable packages to
have a common parent package.
+ Otherwise, it is recommended to use a :term:`regular package`.
+
+ For more information, see :pep:`420` and
:ref:`reference-namespace-package`.
+
See also :term:`module`.
nested scope
diff --git a/Doc/reference/import.rst b/Doc/reference/import.rst
index ac363e8cfa00dc..26a8b2d9c7187e 100644
--- a/Doc/reference/import.rst
+++ b/Doc/reference/import.rst
@@ -123,6 +123,8 @@ Importing ``parent.one`` will implicitly execute
``parent/__init__.py`` and
``parent/three/__init__.py`` respectively.
+.. _reference-namespace-package:
+
Namespace packages
------------------
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]