Title: importlib.resources.simple ResourceContainer/ResourceHandle cannot be instantiated · Issue #145260 · python/cpython · GitHub
Open Graph Title: importlib.resources.simple ResourceContainer/ResourceHandle cannot be instantiated · Issue #145260 · python/cpython
X Title: importlib.resources.simple ResourceContainer/ResourceHandle cannot be instantiated · Issue #145260 · python/cpython
Description: Bug report Bug description: Issue ResourceContainer and ResourceHandle cannot be instantiated because Traversable now declares name as an abstract property. Additionally, ResourceContainer.iterdir() accesses self.reader.resources without...
Open Graph Description: Bug report Bug description: Issue ResourceContainer and ResourceHandle cannot be instantiated because Traversable now declares name as an abstract property. Additionally, ResourceContainer.iterdir(...
X Description: Bug report Bug description: Issue ResourceContainer and ResourceHandle cannot be instantiated because Traversable now declares name as an abstract property. Additionally, ResourceContainer.iterdir(...
Opengraph URL: https://github.com/python/cpython/issues/145260
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"importlib.resources.simple ResourceContainer/ResourceHandle cannot be instantiated","articleBody":"# Bug report\n\n### Bug description:\n\n## Issue\n\n`ResourceContainer` and `ResourceHandle` cannot be instantiated because `Traversable` now declares `name` as an abstract property. Additionally, `ResourceContainer.iterdir()` accesses `self.reader.resources` without calling it, and `ResourceHandle.joinpath` has a signature mismatch with the base class.\n\n## Reproducer\n\n```python\nfrom importlib.resources.simple import ResourceContainer, SimpleReader\nimport io\n\nclass R(SimpleReader):\n @property\n def package(self): return 'x'\n def children(self): return []\n def resources(self): return []\n def open_binary(self, r): return io.BytesIO(b'')\n\nResourceContainer(R()) # TypeError: Can't instantiate abstract class ResourceContainer\n```\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\n_No response_\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-145263\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/zetzschest","@type":"Person","name":"zetzschest"},"datePublished":"2026-02-26T15:25:57Z","url":"https://github.com/python/cpython/issues/145260"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:cb400f97-b007-6515-6c93-3d63ae5546ce |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D036:1AC37C:925DB4:C36A38:6B0042B4 |
| html-safe-nonce | 8fa81b407b279f02b0bb5560fa98ab8da1dc3b72b1bf595cf3e1c3c8d510e5b0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDM2OjFBQzM3Qzo5MjVEQjQ6QzM2QTM4OjZCMDA0MkI0IiwidmlzaXRvcl9pZCI6IjE4ODYxNTYwMjEwNzI2NzU1MDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 337966e2583bc6d082078cdcffb19b7a4a2733a0515556d3c600563a98011d4c |
| hovercard-subject-tag | issue:3996195079 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/145260/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d7a44e00c8e7e3253aad223c22ac48abef5151100475cf38361beccbb9183ce1/python/cpython/issues/145260 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d7a44e00c8e7e3253aad223c22ac48abef5151100475cf38361beccbb9183ce1/python/cpython/issues/145260 |
| og:image:alt | Bug report Bug description: Issue ResourceContainer and ResourceHandle cannot be instantiated because Traversable now declares name as an abstract property. Additionally, ResourceContainer.iterdir(... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zetzschest |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width