]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35181: Correct importlib documentation for some module attributes (GH-15190)
authorGéry Ogam <gery.ogam@gmail.com>
Wed, 21 Oct 2020 21:17:35 +0000 (23:17 +0200)
committerGitHub <noreply@github.com>
Wed, 21 Oct 2020 21:17:35 +0000 (14:17 -0700)
commit27f1bd8787d24ac53cc3dc6ea5eb00b8a3499839
treedcab2a276f5f5b44190f2f7bb865d2e891809d2d
parentf8b1ccd63c94bcde1c15d56d24add89861b6ceee
bpo-35181: Correct importlib documentation for some module attributes (GH-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
Doc/library/importlib.rst
Doc/reference/import.rst