Uh oh!
There was an error while loading. Please reload this page.
gh-97850: Deprecate find_loader and get_loader in pkgutil - #98520
Conversation
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Some comments and suggestions on the implementation of this deprecation, based on how we've handled others recently.
Pro tip (since not everyone seems to know this): if you go to the Files changed tab of this PR, you can apply some or all of the suggestions in one click by clicking Add to batch on each suggestion you want, and then click Commit either at the top or on any added suggestion with a descriptive message.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…6coo.rst Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
sobolevn
commented
Nov 9, 2022
Thank you for the reviews: @merwok and @CAM-Gerlach I've also checked that >>>importpkgutil>>>pkgutil.get_loader('os')
<stdin>:1: DeprecationWarning: 'pkgutil.get_loader'isdeprecatedandslatedforremovalinPython3.14; useimportlib.util.find_specinstead<_frozen_importlib_external.SourceFileLoaderobjectat0x1012d55f0>>>>
I've also merged one of the @CAM-Gerlach's suggestion, so you get a credit for your awesome proposals! 🤝 |
brettcannon
left a comment
There was a problem hiding this comment.
Overall LGTM, but I think there might be some unnecessary checks in the tests for various module "kinds".
Uh oh!
There was an error while loading. Please reload this page.
bedevere-bot
commented
Nov 25, 2022
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 |
CAM-Gerlach
commented
Nov 26, 2022
Just FYI, you can apply some or all of them at once by going to the |
…m/sobolevn/cpython into deprecate-pkgutil-get-find-loader
sobolevn
commented
Jan 7, 2023
@brettcannon I forgot to send the magic phrase! I have made the requested changes; please review again |
bedevere-bot
commented
Jan 7, 2023
Thanks for making the requested changes! @brettcannon: please review the changes made to this pull request. |
brettcannon
left a comment
There was a problem hiding this comment.
Unfortunately I just realized that the documentation for pkgutil needs updating to mention the deprecations.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
bedevere-bot
commented
Jan 21, 2023
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 |
Co-authored-by: Brett Cannon <brett@python.org>
find_module and get_module in pkgutilfind_loader and get_loader in pkgutil…6coo.rst Co-authored-by: Brett Cannon <brett@python.org>
sobolevn
commented
Apr 11, 2023
I have made the requested changes; please review again 🙂 |
bedevere-bot
commented
Apr 11, 2023
Thanks for making the requested changes! @brettcannon: please review the changes made to this pull request. |
sobolevn
commented
Apr 19, 2023
Oups, just found out that my push with Redid it now, it worked! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
brettcannon
commented
May 3, 2023
@sobolevn the changes look good, but now there are unfortunately merge conflicts. |
sobolevn
commented
May 3, 2023
Done :) |
brettcannon
commented
May 3, 2023
Thanks! |
warsaw
commented
May 4, 2023
Thank you for this additional cleanup! |
Refs #64138