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

gh-93610: Improve docs for importlib.resources #93611

Merged
merged 18 commits into from Jul 25, 2022
Merged

Conversation

encukou
Copy link
Member

@encukou encukou commented Jun 8, 2022

This PR aims to make importlib.resources docs more usable.
@jaraco, do these look reasonable?


Please, if you have suggestions for more improvements, use the issue (or another PR). This PR does not aim to make the docs perfect, just better.

@encukou encukou requested a review from jaraco June 8, 2022 17:27
@bedevere-bot bedevere-bot added docs Documentation in the Doc dir awaiting core review labels Jun 8, 2022
Copy link
Member

@AA-Turner AA-Turner left a comment

Choose a reason for hiding this comment

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

Nothing major:

A

Doc/library/importlib.resources.abc.rst Outdated Show resolved Hide resolved
Doc/library/importlib.resources.rst Outdated Show resolved Hide resolved
Doc/library/importlib.resources.rst Show resolved Hide resolved
Doc/library/importlib.resources.rst Outdated Show resolved Hide resolved
Doc/library/importlib.resources.rst Outdated Show resolved Hide resolved
Doc/library/importlib.resources.rst Show resolved Hide resolved
Doc/library/importlib.resources.rst Show resolved Hide resolved
Doc/library/importlib.resources.rst Show resolved Hide resolved
Doc/library/importlib.resources.rst Outdated Show resolved Hide resolved
Doc/library/importlib.resources.rst Show resolved Hide resolved
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
@encukou
Copy link
Member Author

encukou commented Jun 16, 2022

Hm, I see the mistake I made here: I moved all of importlib.abc to a new file, but in reality that page should be split between importlib.abc and importlib.resources.abc.
One day I'll learn how this package works, but it's not today!

@encukou
Copy link
Member Author

encukou commented Jun 16, 2022

Here's a fix.
There's a remaining reference to a importlib.abc.TraversableReader, which is undocumented and actually lives in the undocumented module importlib.resources.simple, but declare that out of scope of this PR.

@AA-Turner
Copy link
Member

It might make sense to break out importlib.abc to its own page, but out of scope for this importlib.resouces-specific PR.

A

@ambv ambv added the needs backport to 3.11 only security fixes label Jul 25, 2022
@ambv ambv merged commit ccd7c7a into python:main Jul 25, 2022
@miss-islington
Copy link
Contributor

Thanks @encukou for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Jul 25, 2022
@bedevere-bot
Copy link

GH-95247 is a backport of this pull request to the 3.11 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 25, 2022
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit ccd7c7a)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
ambv added a commit that referenced this pull request Jul 25, 2022
(cherry picked from commit ccd7c7a)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
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 topic-importlib
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants