Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
miss-islington merged 1 commit into
python:3.8python/cpython:3.8from
miss-islington:backport-27f1bd8-3.8miss-islington/cpython:backport-27f1bd8-3.8Copy head branch name to clipboard
Oct 21, 2020
Merged

[3.8] bpo-35181: Correct importlib documentation for some module attributes (GH-15190)#22873
miss-islington merged 1 commit into
python:3.8python/cpython:3.8from
miss-islington:backport-27f1bd8-3.8miss-islington/cpython:backport-27f1bd8-3.8Copy head branch name to clipboard

Conversation

@miss-islington

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

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.