Remove unused private function importlib._bootstrap._object_name #150886
Copy link
Copy link
Closed
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
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) removedload_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
Reactions are currently unavailable
Metadata
Metadata
Assignees
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)
Activity
pythongh-150886: Remove unused importlib._bootstrap._object_name
pythongh-150886: Add NEWS entry for _object_name removal
gh-150886: Remove unused importlib._bootstrap._object_name (#150884)
pythongh-150886: Remove unused importlib._bootstrap._object_name (pyt…