Skip to content

Commit ef4f27d

Browse files
authored
Expand glossary with namespace package definitions
Add explanation for implicit and native namespace packages.
1 parent 8e6bb80 commit ef4f27d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎source/glossary.rst‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,16 @@ Glossary
119119
extensions.
120120

121121

122+
Implicit Namespace Package
123+
Native Namespace Package
124+
125+
Native namespace and implicit namespace packages are two names for the same thing.
126+
The term "native" derives from the built-in feature of Python to create packages
127+
without installing an extra package, such as setuptools, from outside the standard
128+
library. The term "implicit" derives from the fact that you don't have to explicitly
129+
declare the namespace package in a :file:`__init__.py` file. This guide uses these
130+
names interchangeably.
131+
122132
Import Package
123133

124134
A Python module which can contain other modules or recursively, other

0 commit comments

Comments
 (0)