cpython icon indicating copy to clipboard operation
cpython copied to clipboard

gh-97850: Deprecate `find_module` and `get_module` in `pkgutil`

Open sobolevn opened this issue 3 years ago • 1 comments

Refs https://github.com/python/cpython/issues/64138

  • Issue: gh-97850

sobolevn avatar Oct 21 '22 13:10 sobolevn

Thank you for the reviews: @merwok and @CAM-Gerlach It is much better now. I was not aware of ._deprecated helper.

I've also checked that get_loader does not get 2 warnings (because it is using find_loader inside):

>>> import pkgutil
>>> pkgutil.get_loader('os')
<stdin>:1: DeprecationWarning: 'pkgutil.get_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec instead
<_frozen_importlib_external.SourceFileLoader object at 0x1012d55f0>
>>> 

test_pkgutil tests are also clean, no unwanted warnings. I will look through all logs again when it is completed.

I've also merged one of the @CAM-Gerlach's suggestion, so you get a credit for your awesome proposals! 🤝

sobolevn avatar Nov 09 '22 13:11 sobolevn

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.

bedevere-bot avatar Nov 25 '22 23:11 bedevere-bot

I've also merged one of the @CAM-Gerlach's suggestion, so you get a credit for your awesome proposals! handshake

Just FYI, you can apply some or all of them at once by going to the Files changed tab, clicking Add to batch on each suggestion and then clicking `Commit (with an appropriate message).

CAM-Gerlach avatar Nov 26 '22 00:11 CAM-Gerlach

@brettcannon I forgot to send the magic phrase!

I have made the requested changes; please review again

sobolevn avatar Jan 07 '23 08:01 sobolevn

Thanks for making the requested changes!

@brettcannon: please review the changes made to this pull request.

bedevere-bot avatar Jan 07 '23 08:01 bedevere-bot

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.

bedevere-bot avatar Jan 21 '23 00:01 bedevere-bot

I have made the requested changes; please review again 🙂

sobolevn avatar Apr 11 '23 07:04 sobolevn

Thanks for making the requested changes!

@brettcannon: please review the changes made to this pull request.

bedevere-bot avatar Apr 11 '23 07:04 bedevere-bot

Oups, just found out that my push with pkgutil.rst change did not make it into this branch :(

Redid it now, it worked!

sobolevn avatar Apr 19 '23 09:04 sobolevn

@sobolevn the changes look good, but now there are unfortunately merge conflicts.

brettcannon avatar May 03 '23 19:05 brettcannon

Done :)

sobolevn avatar May 03 '23 20:05 sobolevn

Thanks!

brettcannon avatar May 03 '23 23:05 brettcannon

Thank you for this additional cleanup!

warsaw avatar May 04 '23 15:05 warsaw