Skip to content

Confused deprecation in importlib.resources.abc #107352

Closed as not planned
Closed as not planned

Description

@serhiy-storchaka

In https://docs.python.org/3.12/library/importlib.resources.abc.html:

The documentation for importlib.resources.abc.Traversable says: "Deprecated since version 3.12, will be removed in version 3.14: Use importlib.resources.abc.Traversable instead."

The documentation for importlib.resources.abc.TraversableResources says: "Deprecated since version 3.12, will be removed in version 3.14: Use importlib.resources.abc.TraversableResources instead."

Why does it recommend to use the same deprecated class?

Activity

  1. hugovk commented on Jul 27, 2023

    @hugovk
    Member

    Ah, this is a bug, the classes in importlib.abc have been deprecated, use the ones in importlib.resources.abc instead:

    image

    https://docs.python.org/3.12/whatsnew/3.12.html#pending-removal-in-python-3-14


    The deprecations would need moving to:

    https://docs.python.org/3.12/library/importlib.html#module-importlib.abc

    However, the classes aren't actually documented there.

    It doesn't seem worth fully documenting them, shall we add brief entries? The class title, and the deprecation note?

  2. AlexWaygood commented on Jul 27, 2023

    @AlexWaygood
    Member

    Duplicate of #105189

  3. serhiy-storchaka commented on Jul 28, 2023

    @serhiy-storchaka
    MemberAuthor

    It doesn't seem worth fully documenting them, shall we add brief entries? The class title, and the deprecation note?

    Yes, I think it would be fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixes3.13only security fixesdocsDocumentation in the Doc dirtopic-importlib

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions