Title: gh-97930: Apply changes from importlib_resources 5.10. by jaraco · Pull Request #100598 · python/cpython · GitHub
Open Graph Title: gh-97930: Apply changes from importlib_resources 5.10. by jaraco · Pull Request #100598 · python/cpython
X Title: gh-97930: Apply changes from importlib_resources 5.10. by jaraco · Pull Request #100598 · python/cpython
Description: Previous sync with 5.9 was #97929. Changes are described here: #203: Lifted restriction on modules passed to files. Now modules need not be a package and if a non-package module is passed, resources will be resolved adjacent to those modules, even for modules not found in any package. For example, files(import_module('mod.py')) will resolve resources found at the root. The parameter to files was renamed from ‘package’ to ‘anchor’, with a compatibility shim for those passing by keyword. #259: files no longer requires the anchor to be specified and can infer the anchor from the caller’s scope (defaults to the caller’s module). These changes have been released for several months with no reported concerns. Issue: gh-97930
Open Graph Description: Previous sync with 5.9 was #97929. Changes are described here: #203: Lifted restriction on modules passed to files. Now modules need not be a package and if a non-package module is passed, resourc...
X Description: Previous sync with 5.9 was #97929. Changes are described here: #203: Lifted restriction on modules passed to files. Now modules need not be a package and if a non-package module is passed, resourc...
Opengraph URL: https://github.com/python/cpython/pull/100598
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4d7d36d3-64d9-d3c6-dcd6-e593a7ccb4e4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AE3A:1AB621:419831:5885BE:6969DD39 |
| html-safe-nonce | 1e4017ddc9a618f3ab9083db8119acdac4b281917e8505daef733ca160c2d82b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTNBOjFBQjYyMTo0MTk4MzE6NTg4NUJFOjY5NjlERDM5IiwidmlzaXRvcl9pZCI6IjI0NTc2MzY4MDE3MTk0MjYzNjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2ee3a6dc95180afd3ad059f3a1b306df1756a217d006b0b37fc2cc401725b34c |
| hovercard-subject-tag | pull_request:1179891848 |
| 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/100598/files |
| twitter:image | https://avatars.githubusercontent.com/u/308610?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/308610?s=400&v=4 |
| og:image:alt | Previous sync with 5.9 was #97929. Changes are described here: #203: Lifted restriction on modules passed to files. Now modules need not be a package and if a non-package module is passed, resourc... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width