Skip to content

Commit 4cbef76

Browse files
authored
Merge pull request #1979 from stevepiercy/patch-1
Clarify definition of native and implicit namespace packages
2 parents 41f7052 + 6b3bd1d commit 4cbef76

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

‎source/glossary.rst‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ Glossary
192192
A mechanism for splitting a single :term:`Import Package <Import Package>`
193193
across one or more :term:`Distribution Packages <Distribution Package>`.
194194

195+
For guidance on creating namespace packages, see
196+
:ref:`packaging-namespace-packages`.
197+
195198

196199
Package Index
197200

‎source/guides/packaging-namespace-packages.rst‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@ from which the latter is discouraged:
7171
#. Use `legacy namespace packages`_. This comprises `pkgutil-style namespace packages`_
7272
and `pkg_resources-style namespace packages`_.
7373

74+
.. note::
75+
76+
"Native namespace packages" and "implicit namespace packages" are two names for
77+
the same type of namespace package. The term "native" derives from the built-in
78+
feature of Python to create packages without installing an extra package, such as
79+
setuptools, from outside the standard library. The term "implicit" derives from
80+
the fact that you don't have to explicitly declare the namespace package in a
81+
:file:`__init__.py` file.
82+
This guide uses these names interchangeably.
83+
84+
.. _native-namespace-packages:
85+
7486
Native namespace packages
7587
-------------------------
7688

0 commit comments

Comments
 (0)