-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
bpo-37459: importlib docs improperly reference get_resource_loader() #14568
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, verified that this is the only reference to get_resource_loader(fullname)
across the cpython repository. Based on the described functionality, get_resource_reader()
seems to be the appropriate replacement.
Doc/library/importlib.rst
Outdated
@@ -500,7 +500,7 @@ ABC hierarchy:: | |||
packages or a module). | |||
|
|||
Loaders that wish to support resource reading are expected to | |||
provide a method called ``get_resource_loader(fullname)`` which | |||
provide a method called ``get_resource_reader()`` which |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please restore the fullname
argument here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix; one change is needed.
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Thanks @aldwinaldwin for the PR, and @warsaw for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8. |
@warsaw: Please replace |
GH-14580 is a backport of this pull request to the 3.8 branch. |
…ythonGH-14568) * bpo-37459: importlib docs improperly reference get_resource_loader() (cherry picked from commit b607d99) Co-authored-by: aldwinaldwin <aldwinaldwin@users.noreply.github.com>
GH-14581 is a backport of this pull request to the 3.7 branch. |
…ythonGH-14568) * bpo-37459: importlib docs improperly reference get_resource_loader() (cherry picked from commit b607d99) Co-authored-by: aldwinaldwin <aldwinaldwin@users.noreply.github.com>
@warsaw Good catch, I should've searched the repository for |
No worries @aeros167 ! Thanks for helping out! |
…ython#14568) * bpo-37459: importlib docs improperly reference get_resource_loader()
…ython#14568) * bpo-37459: importlib docs improperly reference get_resource_loader()
Gregory Szorc: "The documentation in importlib.rst says that a loader should implement
get_resource_loader(fullname)
. This is the only occurrence ofget_resource_loader
in the CPython source tree. It should be changed toget_resource_reader()
."https://bugs.python.org/issue37459