Uh oh!
There was an error while loading. Please reload this page.
gh-121604: Make sure all deprecated items in importlib raise DeprecationWarning - #128007
Conversation
Co-authored-by: rashansmith <smith.rashan@gmail.com>
Co-authored-by: rashansmith <smith.rashan@gmail.com>
…CODE_SUFFIXES. Co-authored-by: rashansmith <smith.rashan@gmail.com>
Co-authored-by: rashansmith <smith.rashan@gmail.com>
tomasr8
commented
Dec 16, 2024
StanFromIreland
left a comment
There was a problem hiding this comment.
Two little things I noticed. I did not have time to go through the rest but it looks good in general.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
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.
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 |
brettcannon
commented
Jan 6, 2025
Sorry about the review delay! |
Co-authored-by: Brett Cannon <brett@python.org>
tomasr8
commented
Jan 7, 2025
No worries, and thanks for the review! I think I addressed your comments if you feel like having another look :) I have made the requested changes; please review again |
Thanks for making the requested changes! @brettcannon: please review the changes made to this pull request. |
Uh oh!
There was an error while loading. Please reload this page.
brettcannon
commented
Jan 15, 2025
Thanks, @tomasr8 for bearing with me and my delayed reviews! 😅 |
tomasr8
commented
Jan 15, 2025
No worries :) Thanks for the review! |
Uh oh!
There was an error while loading. Please reload this page.
Largely based on work done by @rashansmith, this adds deprecation warnings for the following importlib classes, methods and attributes (using the docs as the source of truth):
The deprecation messages are based on the docs. Warnings for
DEBUG_BYTECODE_SUFFIXESandOPTIMIZED_BYTECODE_SUFFIXESare implemented using a module__getattr__.Feedback welcome!
DeprecationWarning#121604