| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
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.
Sorry, something went wrong.
|
|
||
| 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.
Please restore the fullname argument here.
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks for the fix; one change is needed.
Sorry, something went wrong.
|
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 I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request. |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks!
Sorry, something went wrong.
|
Thanks @aldwinaldwin for the PR, and @warsaw for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8. |
Sorry, something went wrong.
|
@warsaw: Please replace # with GH- in the commit message next time. Thanks! |
Sorry, something went wrong.
|
GH-14580 is a backport of this pull request to the 3.8 branch. |
Sorry, something went wrong.
…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. |
Sorry, something went wrong.
…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 get_resource_reader() to make sure, I had assumed that method was only using a self arg. Line 272 of zimimport.py clearly shows otherwise: def get_resource_reader(self, fullname):``. I definitely need to learn to scrutinize everything in order to provide more constructive reviews. My apologies. |
Sorry, something went wrong.
|
No worries @aeros167 ! Thanks for helping out! |
Sorry, something went wrong.
…ython#14568) * bpo-37459: importlib docs improperly reference get_resource_loader()
…ython#14568) * bpo-37459: importlib docs improperly reference get_resource_loader()
| Back | FazBrowse Home | New Git URL |
Gregory Szorc: "The documentation in importlib.rst says that a loader should implement get_resource_loader(fullname). This is the only occurrence of get_resource_loader in the CPython source tree. It should be changed to get_resource_reader()."
https://bugs.python.org/issue37459