Skip to content

GH-137426: Remove code deprecation of importlib.abc.ResourceLoader - #137567

Merged
brettcannon merged 3 commits into
python:mainfrom
brettcannon:137426-undeprecate-ResourceLoader
Aug 11, 2025
Merged

GH-137426: Remove code deprecation of importlib.abc.ResourceLoader#137567
brettcannon merged 3 commits into
python:mainfrom
brettcannon:137426-undeprecate-ResourceLoader

Conversation

@brettcannon

@brettcannonbrettcannon commented Aug 8, 2025

Copy link
Copy Markdown
Member

Enough other classes in importlib.abc inherit from the class and the deprecation was to redirect people to TraversableResources. The documentation now makes it clear the class only exists for backwards compatibility.


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

…ader`
Enough other classes in `importlib.abc` inherit from the class and the deprecation was to redirect people to `TraversableResources`. The documentation now makes it clear the class only exists for backwards compatibility.
@brettcannon

brettcannon commented Aug 8, 2025

Copy link
Copy Markdown
MemberAuthor

Added @hugovk as a reviewer as I made #137426 a release blocker in case that made sense.

@ncoghlanncoghlan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@encukouencukou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like the correct direction to me!

Comment threadMisc/NEWS.d/next/Library/2025-08-08-15-00-38.gh-issue-137426.lW-Rk2.rst Outdated
brettcannonand others added 2 commits August 11, 2025 15:52
@brettcannon
brettcannon merged commit 7140b99 into python:mainAug 11, 2025
42 checks passed
@brettcannon
brettcannon deleted the 137426-undeprecate-ResourceLoader branch August 11, 2025 23:18
@miss-islington-app

Copy link
Copy Markdown

Thanks @brettcannon for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 11, 2025
…ader` (pythonGH-137567)
Enough other classes in `importlib.abc` inherit from the class and the deprecation was to redirect people to `TraversableResources`. The documentation now makes it clear the class only exists for backwards compatibility.
---------
(cherry picked from commit 7140b99)
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@bedevere-app

Copy link
Copy Markdown

GH-137654 is a backport of this pull request to the 3.14 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.14 bugs and security fixes label Aug 11, 2025
hugovk added a commit that referenced this pull request Aug 12, 2025
…oader` (GH-137567) (#137654)
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
maurycy added a commit to maurycy/cpython that referenced this pull request Aug 12, 2025
* main:
pythongh-137288: Update 3.14 magic numbers (pythonGH-137665)
pythongh-135228: When @DataClass(slots=True) replaces a dataclass, make the original class collectible (take 2) (pythonGH-137047)
pythongh-126008: Improve docstrings for Tkinter cget and configure methods (pythonGH-133303)
pythongh-131885: Use positional-only markers for ``max()`` and ``min()`` (python#131868)
pythonGH-137426: Remove code deprecation of `importlib.abc.ResourceLoader` (pythonGH-137567)
pythongh-125897: Mark range function parameters as positional only (python#125945)
pythongh-137400: Fix a crash when disabling profiling across all threads (pythongh-137471)
pythongh-115766: Fix IPv4Interface.is_unspecified (pythonGH-137326)
pythongh-128813: cleanup C-API docs for PyComplexObject (pythonGH-137579)
pythongh-135953: Profile a module or script with sampling profiler (python#136777)
Fix documentation of hash in PyHash_FuncDef (python#137595)
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
…ader` (pythonGH-137567)
Enough other classes in `importlib.abc` inherit from the class and the deprecation was to redirect people to `TraversableResources`. The documentation now makes it clear the class only exists for backwards compatibility.
---------
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
kumaraditya303 pushed a commit to miss-islington/cpython that referenced this pull request Sep 9, 2025
…ourceLoader` (pythonGH-137567) (python#137654)
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic-importlibtype-bugAn unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@brettcannon@encukou@ncoghlan@hugovk