Introduced in pythonGH-23469 (bpo-26131, "Deprecate usage of load_module()")
to render an object's qualified name inside the load_module()
deprecation warnings.
Orphaned by pythongh-142205 (pythonGH-97850, "Remove all uses and definitions of
load_module() from importlib"), which deleted the warning-building call
sites f"{_object_name(spec.loader)}.exec_module() not found; ..." and
left the helper with no caller.
A word-boundary search across Lib, Modules, Python, Objects and Include
finds zero references outside its own definition, and a GitHub code
search finds no downstream importers. The frozen importlib was
regenerated; importlib._bootstrap._object_name no longer exists at
runtime and the full test_importlib suite passes.
importlib._bootstrap._object_name()arrived in GH-23469 (bpo-26131) to render an object's qualified name inside theload_module()deprecation warnings. gh-142205 (GH-97850) removedload_module()and those warnings, deleting the last call site, so the private helper now has no caller.Nothing in the repository references the name outside its own definition, and a GitHub code search turns up no downstream importer. Removing it from
Lib/importlib/_bootstrap.pyand regenerating the frozen module drops it from the runtime._object_nameis private and undocumented, so this has no user-facing effect and needs noMisc/NEWS.dentry. Theskip newslabel applies.