Skip to content

Commit 79f41dd

Browse files
authored
Docs: remove __path__ discussion from tutorial (#156426)
* 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. * add removed id to removed-ids.txt
1 parent b8bf99c commit 79f41dd

2 files changed

Lines changed: 2 additions & 14 deletions

File tree

Doc/tools/removed-ids.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ deprecations/index.html: pending-removal-in-python-3-16
1616
deprecations/index.html: c-api-pending-removal-in-python-3-15
1717
deprecations/index.html: c-api-pending-removal-in-python-3-16
1818

19+
tutorial/modules.html: packages-in-multiple-directories
20+
1921
# Removed libmpdec
2022
using/configure.html: cmdoption-with-system-libmpdec
2123

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)