Title: Possible bug introduced with PR250, joinpath with "." causes StopIteration · Issue #263 · python/importlib_resources · GitHub
Open Graph Title: Possible bug introduced with PR250, joinpath with "." causes StopIteration · Issue #263 · python/importlib_resources
X Title: Possible bug introduced with PR250, joinpath with "." causes StopIteration · Issue #263 · python/importlib_resources
Description: Consider the following code snippet: stopiteration_bug.py: import spacem_maldi.Ontologies from importlib_resources import files print(files(spacem_maldi.Ontologies) / ".") With importlib-resources<=5.7.1 this produces the following outpu...
Open Graph Description: Consider the following code snippet: stopiteration_bug.py: import spacem_maldi.Ontologies from importlib_resources import files print(files(spacem_maldi.Ontologies) / ".") With importlib-resources<...
X Description: Consider the following code snippet: stopiteration_bug.py: import spacem_maldi.Ontologies from importlib_resources import files print(files(spacem_maldi.Ontologies) / ".") With importlib-...
Opengraph URL: https://github.com/python/importlib_resources/issues/263
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Possible bug introduced with PR250, joinpath with \".\" causes StopIteration","articleBody":"Consider the following code snippet:\r\n\r\n`stopiteration_bug.py`:\r\n\r\n```python\r\nimport spacem_maldi.Ontologies\r\nfrom importlib_resources import files\r\n\r\n\r\nprint(files(spacem_maldi.Ontologies) / \".\")\r\n```\r\n\r\nWith `importlib-resources\u003c=5.7.1` this produces the following output:\r\n```\r\n/home/hilsenst/GitlabEMBL/spacem-ht/src/spacem-maldi/spacem_maldi/Ontologies\r\n```\r\n\r\nStarting from version `5.8.0`, i.e. after PR #250 this throws a `StopIteration` exception:\r\n\r\n```\r\n~/Untracked$ python stopiteration_bug.py \r\nTraceback (most recent call last):\r\n File \"stopiteration_bug.py\", line 5, in \u003cmodule>\r\n print(files(spacem_maldi.Ontologies) / \".\")\r\n File \"/home/hilsenst/miniconda3/envs/spacem-maldi-control/lib/python3.8/site-packages/importlib_resources/abc.py\", line 130, in __truediv__\r\n return self.joinpath(child)\r\n File \"/home/hilsenst/miniconda3/envs/spacem-maldi-control/lib/python3.8/site-packages/importlib_resources/readers.py\", line 87, in joinpath\r\n return super().joinpath(*descendants)\r\n File \"/home/hilsenst/miniconda3/envs/spacem-maldi-control/lib/python3.8/site-packages/importlib_resources/abc.py\", line 114, in joinpath\r\n target = next(names)\r\nStopIteration\r\n```\r\n\r\nThe `spacem_maldi` package is a private package, but I don't think that is relevant here. If needed I can try and create a minimal public package.","author":{"url":"https://github.com/VolkerH","@type":"Person","name":"VolkerH"},"datePublished":"2022-08-17T08:58:34Z","url":"https://github.com/python/importlib_resources/issues/263"}
| 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:a2f611d2-5906-470a-fbb0-318938aabea0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A6FA:1BAA33:22B0218:2E1FF88:6B004F48 |
| html-safe-nonce | 291343bef814748d81374771b2306702ca96a322dea172afcab0da3ffe3d069c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkZBOjFCQUEzMzoyMkIwMjE4OjJFMUZGODg6NkIwMDRGNDgiLCJ2aXNpdG9yX2lkIjoiNDA3NDA5Njk0NTcxNzc3ODY0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2fbd539d78eee265405039ae21b177d4c409cb5ed0f0cc2d6946af3f673c2b59 |
| hovercard-subject-tag | issue:1341415110 |
| 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/importlib_resources/263/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2b4bf0389b1a8634338b689bd18ddc7eb12ee671ddcd40a70a60c360d792e4fd/python/importlib_resources/issues/263 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2b4bf0389b1a8634338b689bd18ddc7eb12ee671ddcd40a70a60c360d792e4fd/python/importlib_resources/issues/263 |
| og:image:alt | Consider the following code snippet: stopiteration_bug.py: import spacem_maldi.Ontologies from importlib_resources import files print(files(spacem_maldi.Ontologies) / ".") With importlib-resources<... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | VolkerH |
| hostname | github.com |
| expected-hostname | github.com |
| None | f9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b |
| turbo-cache-control | no-preview |
| go-import | github.com/python/importlib_resources git https://github.com/python/importlib_resources.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 306147182 |
| octolytics-dimension-repository_nwo | python/importlib_resources |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 306147182 |
| octolytics-dimension-repository_network_root_nwo | python/importlib_resources |
| 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 | b27c5dde30676028abd5c5fc53ce5c9b625f8281 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width