Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy