Skip to content
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

[3.8] bpo-35181: Correct importlib documentation for some module attributes (GH-15190) #22873

Merged
merged 1 commit into from
Oct 21, 2020

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Oct 21, 2020

@ericsnowcurrently This PR will change the following:

In the library documentation importlib.rst:

  • module.__package__ can be module.__name__ for packages;
  • spec.parent can be spec.__name__ for packages;
  • spec.loader is not None for namespaces packages.

In the language documentation import.rst:

  • spec.loader is not None for namespace packages.

Automerge-Triggered-By: GH:warsaw
(cherry picked from commit 27f1bd8)

Co-authored-by: Géry Ogam gery.ogam@gmail.com

https://bugs.python.org/issue35181

Automerge-Triggered-By: GH:warsaw

…pythonGH-15190)

@ericsnowcurrently This PR will change the following:

In the library documentation importlib.rst:

- `module.__package__` can be `module.__name__` for packages;
- `spec.parent` can be `spec.__name__` for packages;
- `spec.loader` is not `None` for namespaces packages.

In the language documentation import.rst:

- `spec.loader` is not `None` for namespace packages.

Automerge-Triggered-By: GH:warsaw
(cherry picked from commit 27f1bd8)

Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
@miss-islington
Copy link
Contributor Author

@maggyero: Status check is done, and it's a success ✅ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants