Commit 74e6528
committed
gh-148672: Document namespace subpackages inside regular packages
The import system already creates implicit namespace packages for any
subdirectory of a regular package that lacks an ``__init__.py`` file,
per :pep:`420`. Document this behaviour in Doc/reference/import.rst
so readers do not have to infer it from the PEP and from importlib
internals.1 parent 68ebc05 commit 74e6528
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
125 | 131 | | |
126 | 132 | | |
127 | 133 | | |
| |||
153 | 159 | | |
154 | 160 | | |
155 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
156 | 168 | | |
157 | 169 | | |
158 | 170 | | |
| |||
0 commit comments