-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
gh-133656: Remove deprecated zipimport.zipimporter.load_module
#133662
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
base: main
Are you sure you want to change the base?
Conversation
considering how pyhton imports work, You might have to modify the files that run on import or any references to load_module. This will be a really daunting task for you :( sorry! |
|
||
* :mod:`zipimport`: | ||
|
||
* :meth:`~zipimport.zipimporter.load_module` has been deprecated since | ||
Python 3.10. Use :meth:`~zipimport.zipimporter.exec_module` instead. | ||
(Contributed by Jiahao Li in :gh:`125746`.) |
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.
Same issue again @hugovk, do we keep these? This should be in the devguide.
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.
I saw that others did it this way recently. #133876
I remember that before it was directly removed👀
Okay, I will modify this after a few hours
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.
First, we shouldn't include the pending-removal-in-X.Y.rst
file in X.Y's deprecations/index.rst
, there's no point showing it there.
Given that, is it easier to leave the contents as is (fixing warnings where necessary), for when we want to backport changes to older branches?
@Wulian233 Will review tmrw |
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.
This PR seems sound, however I'll approve it after stanfromireland
and hugovk
resolve their conversation, because I am not sure either if it should or shouldn't be in the devguide either :)
Resolved a new merge conflict @brettcannon Would you like to review it, thanks! |
Ready review!
zipimport.zipimporter.load_module
#133656📚 Documentation preview 📚: https://cpython-previews--133662.org.readthedocs.build/