Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-133656: Remove deprecatedzipimport.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 ourterms of service andprivacy 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?
Uh oh!
There was an error while loading.Please reload this page.
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! |
Uh oh!
There was an error while loading.Please reload this page.
* :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 thepending-removal-in-X.Y.rst
file in X.Y'sdeprecations/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 |
sharktide left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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 afterstanfromireland
andhugovk
resolve their conversation, because I am not sure either if it should or shouldn't be in the devguide either :)
Uh oh!
There was an error while loading.Please reload this page.
Ready review!
zipimport.zipimporter.load_module
#133656📚 Documentation preview 📚:https://cpython-previews--133662.org.readthedocs.build/