Skip to content

Conversation

quazi-irfan
Copy link
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
@@ -587,7 +587,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:`~module.__path__`. This is
All packages have a special attribute :attr:`__path__`. This is
Copy link
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
Member

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

4 participants