Skip to content
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

gh-97850: Update the deprecation warning of importlib.abc.Loader.load_module #129855

Merged
merged 3 commits into from
Feb 11, 2025

Conversation

tomasr8
Copy link
Member

@tomasr8 tomasr8 commented Feb 8, 2025

The deprecation warning was added in 3.10 by #23469.

The warning currently states that the removal is planned for 3.12. I suggest we update it to say 3.15 which, following the 5 releases rule, is the earliest release in which the methods can be removed (whether or not we'll actually be able to do that is another question, but let's at least keep the warnings up to date).

Related discussion: #97850 (comment) , #97850 (comment)


📚 Documentation preview 📚: https://cpython-previews--129855.org.readthedocs.build/

@brettcannon brettcannon added needs backport to 3.12 bug and security fixes needs backport to 3.13 bugs and security fixes labels Feb 11, 2025
@brettcannon brettcannon merged commit aa81a6f into python:main Feb 11, 2025
50 checks passed
@miss-islington-app
Copy link

Thanks @tomasr8 for the PR, and @brettcannon for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 11, 2025
…er.load_module` (pythonGH-129855)

(cherry picked from commit aa81a6f)

Co-authored-by: Tomas R. <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Feb 11, 2025

GH-130013 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Feb 11, 2025
@miss-islington-app
Copy link

Sorry, @tomasr8 and @brettcannon, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker aa81a6f6e4f265565da9781d0bf95c7d16ddd961 3.12

@tomasr8
Copy link
Member Author

tomasr8 commented Feb 11, 2025

I can look into the 3.12 backport later :)

brettcannon pushed a commit that referenced this pull request Feb 11, 2025
…der.load_module` (GH-129855) (GH-130013)

gh-97850: Update the deprecation warning of `importlib.abc.Loader.load_module` (GH-129855)
(cherry picked from commit aa81a6f)

Co-authored-by: Tomas R <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Feb 11, 2025

GH-130017 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Feb 11, 2025
@tomasr8 tomasr8 deleted the importlib-module-shim branch February 11, 2025 20:48
brettcannon pushed a commit that referenced this pull request Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants