Skip to content

bpo-35181: Correct importlib documentation for some module attributes #15190

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

Merged
merged 7 commits into from
Oct 21, 2020

Conversation

geryogam
Copy link
Contributor

@geryogam geryogam commented Aug 9, 2019

@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.

https://bugs.python.org/issue35181

Automerge-Triggered-By: GH:warsaw

@geryogam geryogam marked this pull request as ready for review August 9, 2019 10:13
@geryogam geryogam changed the title bpo-35181: Correct some module attribute descriptions in the documentation bpo-35181: Correct the documentation on some module attributes Aug 9, 2019
@ericsnowcurrently ericsnowcurrently self-requested a review August 9, 2019 15:04
aeros
aeros previously requested changes Aug 10, 2019
Copy link
Contributor

@aeros aeros left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. The title should be changed to something a bit more descriptive so that the core devs know which top-level module it involves without having to look at the PR itself. I would advise something along the lines of "Update importlib documentation for module attributes".

I have a few suggestions:

@geryogam geryogam changed the title bpo-35181: Correct the documentation on some module attributes bpo-35181: Correct importlib library and import language documentation for some module attributes Aug 10, 2019
@geryogam geryogam changed the title bpo-35181: Correct importlib library and import language documentation for some module attributes bpo-35181: Correct importlib documentation for some module attributes Aug 10, 2019
@geryogam
Copy link
Contributor Author

geryogam commented Aug 10, 2019

@aeros167 Thank you for the suggestions. I have updated the PR title. As for your other suggestions, I am fine with them but I would like to have @ericsnowcurrently's opinion before applying them.

@aeros
Copy link
Contributor

aeros commented Aug 21, 2019

Since this PR is involving documentation corrections and does not add any new sections, I'll add a skip news label. If you'd like to include one, I can remove it though.

@geryogam
Copy link
Contributor Author

@ericsnowcurrently What do you think of @aeros167 suggested changes?

warsaw and others added 2 commits October 21, 2020 11:39
@warsaw warsaw requested a review from aeros October 21, 2020 18:41
@warsaw warsaw dismissed aeros’s stale review October 21, 2020 18:56

See comments in place above. Thank you for the requested changes, but I think this PR is good now. Using Dismiss review was the only way I could see to avoid this blocking the PR.

@miss-islington
Copy link
Contributor

@maggyero: Status check is done, and it's a failure ❌ .

@warsaw
Copy link
Member

warsaw commented Oct 21, 2020

I'll check out this branch locally and repair the build failures.

@miss-islington
Copy link
Contributor

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

@miss-islington
Copy link
Contributor

Sorry, I can't merge this PR. Reason: 2 of 4 required status checks are expected..

@miss-islington
Copy link
Contributor

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

1 similar comment
@miss-islington
Copy link
Contributor

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

@miss-islington
Copy link
Contributor

Sorry, I can't merge this PR. Reason: 2 of 4 required status checks are expected..

1 similar comment
@miss-islington
Copy link
Contributor

Sorry, I can't merge this PR. Reason: 2 of 4 required status checks are expected..

@miss-islington
Copy link
Contributor

@maggyero: Status check is done, and it's a failure ❌ .

@miss-islington
Copy link
Contributor

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

@miss-islington miss-islington merged commit 27f1bd8 into python:master Oct 21, 2020
@miss-islington
Copy link
Contributor

Thanks @maggyero for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 21, 2020
…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 <[email protected]>
@bedevere-bot
Copy link

GH-22872 is a backport of this pull request to the 3.9 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label Oct 21, 2020
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 21, 2020
…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 <[email protected]>
@bedevere-bot
Copy link

GH-22873 is a backport of this pull request to the 3.8 branch.

miss-islington added a commit that referenced this pull request Oct 21, 2020
…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
(cherry picked from commit 27f1bd8)

Co-authored-by: Géry Ogam <[email protected]>
miss-islington added a commit that referenced this pull request Oct 21, 2020
…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
(cherry picked from commit 27f1bd8)

Co-authored-by: Géry Ogam <[email protected]>
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
…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
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.

6 participants