Skip to content

Commit 9d85ddf

Browse files
authored
[3.13] Docs: remove __path__ discussion from tutorial (GH-156426) (#156453)
* Docs: remove __path__ discussion from tutorial This isn't the current best way to make namespace packages; almost no one needs to make namespace packages; the deleted text even says "while this feature is not often needed". It doesn't belong in the tutorial. (cherry picked from commit 79f41dd)
1 parent 4b1320f commit 9d85ddf

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

Doc/tutorial/modules.rst

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -584,20 +584,6 @@ Since the main module does not have a package, modules intended for use
584584
as the main module of a Python application must always use absolute imports.
585585

586586

587-
Packages in Multiple Directories
588-
--------------------------------
589-
590-
Packages support one more special attribute, :attr:`~module.__path__`. This is
591-
initialized to be a :term:`sequence` of strings containing the name of the
592-
directory holding the
593-
package's :file:`__init__.py` before the code in that file is executed. This
594-
variable can be modified; doing so affects future searches for modules and
595-
subpackages contained in the package.
596-
597-
While this feature is not often needed, it can be used to extend the set of
598-
modules found in a package.
599-
600-
601587
.. rubric:: Footnotes
602588

603589
.. [#] In fact function definitions are also 'statements' that are 'executed'; the

0 commit comments

Comments
 (0)