From dd1098152e6e4e211a7ab097837e7400e7bbaba3 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 26 Aug 2026 13:53:25 -0400 Subject: [PATCH 1/2] 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. --- Doc/tutorial/modules.rst | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Doc/tutorial/modules.rst b/Doc/tutorial/modules.rst index f8105cd5441fec2..46a226be606aeba 100644 --- a/Doc/tutorial/modules.rst +++ b/Doc/tutorial/modules.rst @@ -584,20 +584,6 @@ Since the main module does not have a package, modules intended for use as the main module of a Python application must always use absolute imports. -Packages in Multiple Directories --------------------------------- - -Packages support one more special attribute, :attr:`~module.__path__`. This is -initialized to be a :term:`sequence` of strings containing the name of the -directory holding the -package's :file:`__init__.py` before the code in that file is executed. This -variable can be modified; doing so affects future searches for modules and -subpackages contained in the package. - -While this feature is not often needed, it can be used to extend the set of -modules found in a package. - - .. rubric:: Footnotes .. [#] In fact function definitions are also 'statements' that are 'executed'; the From e61864a47525a259bb88a2e802209f50388514af Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 26 Aug 2026 14:07:12 -0400 Subject: [PATCH 2/2] add removed id to removed-ids.txt --- Doc/tools/removed-ids.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/tools/removed-ids.txt b/Doc/tools/removed-ids.txt index 3801e6d31199d69..059cbb9a8465496 100644 --- a/Doc/tools/removed-ids.txt +++ b/Doc/tools/removed-ids.txt @@ -16,6 +16,8 @@ deprecations/index.html: pending-removal-in-python-3-16 deprecations/index.html: c-api-pending-removal-in-python-3-15 deprecations/index.html: c-api-pending-removal-in-python-3-16 +tutorial/modules.html: packages-in-multiple-directories + # Removed libmpdec using/configure.html: cmdoption-with-system-libmpdec