Title: [3.9] bpo-39791 native hooks for importlib.resources.files (GH-20576) by miss-islington · Pull Request #20703 · python/cpython · GitHub
Open Graph Title: [3.9] bpo-39791 native hooks for importlib.resources.files (GH-20576) by miss-islington · Pull Request #20703 · python/cpython
X Title: [3.9] bpo-39791 native hooks for importlib.resources.files (GH-20576) by miss-islington · Pull Request #20703 · python/cpython
Description: Provide native .files support on SourceFileLoader. Add native importlib.resources.files() support to zipimporter. Remove fallback support. make regen-all 📜🤖 Added by blurb_it. Move 'files' into the ResourceReader so it can carry the relevant module name context. Create 'importlib.readers' module and add FileReader to it. Add zip reader and rely on it for a TraversableResources object on zipimporter. Remove TraversableAdapter, no longer needed. Update blurb. Replace backslashes with forward slashes. Incorporate changes from importlib_metadata 2.0, finalizing the interface for extension via get_resource_reader. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 843c277) Co-authored-by: Jason R. Coombs jaraco@jaraco.com https://bugs.python.org/issue39791 Automerge-Triggered-By: @jaraco
Open Graph Description: Provide native .files support on SourceFileLoader. Add native importlib.resources.files() support to zipimporter. Remove fallback support. make regen-all 📜🤖 Added by blurb_it. Move 'fil...
X Description: Provide native .files support on SourceFileLoader. Add native importlib.resources.files() support to zipimporter. Remove fallback support. make regen-all 📜🤖 Added by blurb_it. Move '...
Opengraph URL: https://github.com/python/cpython/pull/20703
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3d93f2b0-8457-6165-aed2-4f461277f5cd |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C22E:3885D3:9672D2:DB4B1A:6A4E1B1B |
| html-safe-nonce | 1492bff463552db6e8c4d2d0ac34a001e4268dcc1313e0fe1ee00dad9eb79368 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjJFOjM4ODVEMzo5NjcyRDI6REI0QjFBOjZBNEUxQjFCIiwidmlzaXRvcl9pZCI6IjI5MzM0MjUwMjM4NTgxMjE0OTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 70b316003e60137c88e74a2196d7f0bbb4acabec450ae04f409c10d89b924ac3 |
| hovercard-subject-tag | pull_request:430543594 |
| 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/20703/files |
| twitter:image | https://avatars.githubusercontent.com/u/31488909?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/31488909?s=400&v=4 |
| og:image:alt | Provide native .files support on SourceFileLoader. Add native importlib.resources.files() support to zipimporter. Remove fallback support. make regen-all 📜🤖 Added by blurb_it. Move 'fil... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| 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 | 5fe497b4815fcce3df76c0e246faa739a82c3124 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width