Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.12] gh-97850: SuggestTraversableResources as the alternative forResourceLoader (GH-128601)#128896

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

Merged
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-97850: SuggestTraversableResources as the alternative for `Reso…
…urceLoader` (GH-128601)Suggest TraversableResources as the alternative for ResourceLoader.Previously, ResourceReader was the suggested alternative, but itis itself deprecated in favour of TraversableResources.(cherry picked from commit256d6d2)Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
  • Loading branch information
@tomasr8@miss-islington
tomasr8 authored andmiss-islington committedJan 15, 2025
commitd09561617595b77a4ccb615f31a50aadfe6ea4d4
4 changes: 3 additions & 1 deletionDoc/library/importlib.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -380,13 +380,15 @@ ABC hierarchy::

.. class:: ResourceLoader

*Superseded by TraversableResources*

An abstract base class for a :term:`loader` which implements the optional
:pep:`302` protocol for loading arbitrary resources from the storage
back-end.

.. deprecated:: 3.7
This ABC is deprecated in favour of supporting resource loading
through :class:`importlib.resources.abc.ResourceReader`.
through :class:`importlib.resources.abc.TraversableResources`.

.. abstractmethod:: get_data(path)

Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp