Skip to content

Commit 0342a80

Browse files
stevepiercyrgommers
authored andcommitted
Clarify native and implicit namespace package terminology
Explain that native and implicit namespace packages are the same PEP 420 mechanism, and describe both terms in the namespace packaging guide. Keep the detailed terminology on the guide page rather than adding separate glossary entries.
1 parent 41f7052 commit 0342a80

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,21 @@ 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. It's defined in :pep:`420`, and is available
78+
in Python 3.3 and later.
79+
80+
The term "native" derives from the built-in feature of Python to create packages
81+
without installing an extra package, such as setuptools, from outside the standard
82+
library. The term "implicit" derives from the fact that you don't have to explicitly
83+
declare the namespace package in a :file:`__init__.py` file.
84+
85+
This guide uses these names interchangeably.
86+
87+
.. _native-namespace-packages:
88+
7489
Native namespace packages
7590
-------------------------
7691

0 commit comments

Comments
 (0)