Skip to content

Commit 6b3bd1d

Browse files
committed
Link namespace package glossary entry to the guide; remove duplicate sentence
Point readers to the namespace packaging guide for the native and legacy approaches, keeping the glossary definition concise. The sentence on PEP 420 and Python 3.3 is already present in the numbered list right above, so remove it - this also makes the added .. note:: more concise.
1 parent 0342a80 commit 6b3bd1d

2 files changed

Lines changed: 8 additions & 8 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: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,11 @@ from which the latter is discouraged:
7474
.. note::
7575

7676
"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-
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.
8582
This guide uses these names interchangeably.
8683

8784
.. _native-namespace-packages:

0 commit comments

Comments
 (0)