Title: gh-150886: Remove unused importlib._bootstrap._object_name by gaborbernat · Pull Request #150884 · python/cpython · GitHub
Open Graph Title: gh-150886: Remove unused importlib._bootstrap._object_name by gaborbernat · Pull Request #150884 · python/cpython
X Title: gh-150886: Remove unused importlib._bootstrap._object_name by gaborbernat · Pull Request #150884 · python/cpython
Description: importlib._bootstrap._object_name() arrived in GH-23469 (bpo-26131) to render an object's qualified name inside the load_module() deprecation warnings. gh-142205 (GH-97850) removed load_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.py and regenerating the frozen module drops it from the runtime. _object_name is private and undocumented, so this has no user-facing effect and needs no Misc/NEWS.d entry. The skip news label applies. Issue: gh-150886
Open Graph Description: importlib._bootstrap._object_name() arrived in GH-23469 (bpo-26131) to render an object's qualified name inside the load_module() deprecation warnings. gh-142205 (GH-97850) removed load_module(...
X Description: importlib._bootstrap._object_name() arrived in GH-23469 (bpo-26131) to render an object's qualified name inside the load_module() deprecation warnings. gh-142205 (GH-97850) removed load_mod...
Opengraph URL: https://github.com/python/cpython/pull/150884
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:0d29e7e2-ecf1-dcec-4df9-639565745427 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B7AE:27700E:B69CB3:10AC4B4:6A562431 |
| html-safe-nonce | c74ebcdff6cb058a068e8426f5a0cb674e5d12197491f0c9d4f56d1c26532584 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0FFOjI3NzAwRTpCNjlDQjM6MTBBQzRCNDo2QTU2MjQzMSIsInZpc2l0b3JfaWQiOiIyNzE2ODM3NTQ5NzY3NTMzNjE3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 99e82b71f4cd19faa0e1b409a6f085543971ce520ca18c56c1222dd981f64d7c |
| hovercard-subject-tag | pull_request:3798129087 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/150884/files |
| twitter:image | https://avatars.githubusercontent.com/u/690238?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/690238?s=400&v=4 |
| og:image:alt | importlib._bootstrap._object_name() arrived in GH-23469 (bpo-26131) to render an object's qualified name inside the load_module() deprecation warnings. gh-142205 (GH-97850) removed load_module(... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | eeb71977be324ce2bc7c4afd597296b8e3527d8922ad94632edd7a7296f8031b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3e7957744c8a44d05ff1e464dc5d119e60b98fae |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width