Skip to content

Clarified relationship between __path__ and Package in Ch6 Modules tutorial#116579

Open
quazi-irfan wants to merge 3 commits intopython:mainfrom
quazi-irfan:ch9_path_pkg
Open

Clarified relationship between __path__ and Package in Ch6 Modules tutorial#116579
quazi-irfan wants to merge 3 commits intopython:mainfrom
quazi-irfan:ch9_path_pkg

Conversation

@quazi-irfan
Copy link
Copy Markdown
Contributor

@quazi-irfan quazi-irfan commented Mar 11, 2024

In Ch 6 Modules tutorial, the first line of section 6.4.3. Packages in Multiple Directories says, "Packages support one more special attribute, __path__.".

But this reverses the cause and effect since, in the glossary, Package is defined as Python module with a __path__ variable.

This pull request attempts to fix that by updating the line to "All packages have a special attribute __path__.".

Discussion link to Discord thread.


📚 Documentation preview 📚: https://cpython-previews--116579.org.readthedocs.build/

@bedevere-app bedevere-app Bot added awaiting review docs Documentation in the Doc dir skip news labels Mar 11, 2024
Comment thread Doc/tutorial/modules.rst Outdated
Comment thread Doc/tutorial/modules.rst
--------------------------------

Packages support one more special attribute, :attr:`~module.__path__`. This is
All packages have a special attribute :attr:`__path__`. This is
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
All packages have a special attribute :attr:`__path__`. This is
All packages have a special attribute, :attr:`~module.__path__`. This is

To fix the error.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip issue skip news stale Stale PR or inactive for long period of time.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

4 participants