From 6df9bafcd7025e90249f7e44ce8e72b8955fb2b8 Mon Sep 17 00:00:00 2001 From: Irfan Quazi Date: Sun, 10 Mar 2024 20:21:47 -0500 Subject: [PATCH 1/2] Clarified misleading cause and effect --- Doc/tutorial/modules.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Doc/tutorial/modules.rst b/Doc/tutorial/modules.rst index 0316239e776a95..a6ac727cbff552 100644 --- a/Doc/tutorial/modules.rst +++ b/Doc/tutorial/modules.rst @@ -585,8 +585,7 @@ as the main module of a Python application must always use absolute imports. Packages in Multiple Directories -------------------------------- -Packages support one more special attribute, :attr:`__path__`. This is -initialized to be a list containing the name of the directory holding the +All packages have a special attribute :attr:`__path__`. This is initialized to be a list 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. From f734db624bc93fa6c605e77998e986594c175d01 Mon Sep 17 00:00:00 2001 From: Irfan Quazi Date: Sun, 10 Mar 2024 23:25:45 -0500 Subject: [PATCH 2/2] Remove unnecessary diff and overflow --- Doc/tutorial/modules.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/tutorial/modules.rst b/Doc/tutorial/modules.rst index a6ac727cbff552..754dfca1582211 100644 --- a/Doc/tutorial/modules.rst +++ b/Doc/tutorial/modules.rst @@ -585,7 +585,8 @@ as the main module of a Python application must always use absolute imports. Packages in Multiple Directories -------------------------------- -All packages have a special attribute :attr:`__path__`. This is initialized to be a list containing the name of the directory holding the +All packages have a special attribute :attr:`__path__`. This is +initialized to be a list 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.