GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Confused deprecation in importlib.resources.abc · Issue #107352 · python/cpython

Confused deprecation in importlib.resources.abc #107352

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Confused deprecation in importlib.resources.abc#107352
Copy link
Labels
3.12only security fixesonly security fixes3.13only security fixesonly security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirtopic-importlib

Description

@serhiy-storchaka
serhiy-storchaka
opened on Jul 27, 2023
Issue body actions

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. serhiy-storchaka
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    topic-importlib
    3.12only security fixesonly security fixes
    3.13only security fixesonly security fixes
    on Jul 27, 2023
  2. hugovk commented on Jul 27, 2023

    @hugovk
    hugovk
    on Jul 27, 2023
    Member
    More actions

    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?

    Reacted by Serhiy Storchaka
  3. AlexWaygood commented on Jul 27, 2023

    @AlexWaygood
    AlexWaygood
    on Jul 27, 2023
    Member
    More actions

    Duplicate of #105189

  4. AlexWaygood
    marked this as a duplicate of importlib.resources.abc.TraversableResources says it is deprecated in favour of itself #105189 on Jul 27, 2023
  5. AlexWaygood
    closed this as not plannedon Jul 27, 2023
  6. serhiy-storchaka commented on Jul 28, 2023

    @serhiy-storchaka
    serhiy-storchaka
    on Jul 28, 2023
    MemberAuthor
    More actions

    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 fixesonly security fixes3.13only security fixesonly security fixesdocsDocumentation in the Doc dirDocumentation in the Doc dirtopic-importlib

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.