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 — Remove unused private function importlib._bootstrap._object_name · Issue #150886 · python/cpython

Remove unused private function importlib._bootstrap._object_name #150886

New issue
Copy link
New issue
Copy link
Closed
Closed
Remove unused private function importlib._bootstrap._object_name#150886
Copy link
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-importlibtype-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)

Description

@gaborbernat
gaborbernat
opened on Jun 3, 2026
Issue body actions

importlib._bootstrap._object_name(obj) has no caller and can be removed.

  • gh-70319: Deprecate usage of load_module() #23469 (bpo-26131) added it to render an object's qualified name inside the load_module() deprecation warnings.
  • Meta issue for cleaning up import system cruft #97850 (GH-97850: Remove all uses and definitions of load_module() from importlib #142205) removed load_module() and those warnings, deleting the last call site.

A word-boundary search across Lib, Modules, Python, Objects, and Include finds no reference outside its own definition, and a GitHub code search finds no downstream importer. The module is frozen, so removal also needs make regen-frozen.

Linked PRs

  • gh-150886: Remove unused importlib._bootstrap._object_name #150884

Activity

  1. gaborbernat
    added a commit that references this issue on Jun 3, 2026

    pythongh-150886: Remove unused importlib._bootstrap._object_name

    9ca2291
  2. picnixz
    added
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    topic-importlib
    type-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)
    on Jun 3, 2026
  3. gaborbernat
    added a commit that references this issue on Jun 3, 2026

    pythongh-150886: Add NEWS entry for _object_name removal

    e3a8519
  4. brettcannon
    added a commit that references this issue on Jun 4, 2026

    gh-150886: Remove unused importlib._bootstrap._object_name (#150884)

    f906522
  5. brettcannon
    closed this as completedon Jun 4, 2026
  6. philthompson10
    added a commit that references this issue on Jun 17, 2026

    pythongh-150886: Remove unused importlib._bootstrap._object_name (pyt…

    f484684
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

    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-importlibtype-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)

    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.