| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:fb107213-c1cb-4b8b-e26b-7f345ea6483c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E5A4:1162D4:7D9D7:B8A8E:6A4DF9B7 |
| html-safe-nonce | 328db31e88857070cea669f09847d77038e50e25858ebd7bc67bb25b31b23464 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUE0OjExNjJENDo3RDlENzpCOEE4RTo2QTRERjlCNyIsInZpc2l0b3JfaWQiOiIxNjM2MjU5NjcxMTM1MDkxMTI4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 343a8bcbcf92ec11c93ba27059685d5f133f21b2a8f43578cc7d918093d8d0e7 |
| hovercard-subject-tag | pull_request:164097736 |
| 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 | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/5248/files |
| twitter:image | https://avatars.githubusercontent.com/u/210184?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/210184?s=400&v=4 |
| og:image:alt | Here's the implementation of ResourceReader for zipimport. This also removes the fallback hacks for zip files, which we'll no longer need.
Before you complain about the trampoline from zip... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5818716c93c6a2925b815402541a32814e43a7b1261c322b0c2df75224289566 |
| 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 | 4314b1df11fa8a565684f3a72dc971e3785da365 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/5248/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F5248%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F5248%2Ffiles |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/5248/files |
| Reload | https://github.com/python/cpython/pull/5248/files |
| Reload | https://github.com/python/cpython/pull/5248/files |
| Please reload this page | https://github.com/python/cpython/pull/5248/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/5248/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
34.8k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
73.6k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.3k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
0
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| warsaw | https://github.com/warsaw |
| python:master | https://github.com/python/cpython/tree/master |
| warsaw:zipresources | https://github.com/warsaw/cpython/tree/zipresources |
|
Conversation
12
| https://github.com/python/cpython/pull/5248 |
|
Commits
24
| https://github.com/python/cpython/pull/5248/commits |
|
Checks
0
| https://github.com/python/cpython/pull/5248/checks |
|
Files changed
| https://github.com/python/cpython/pull/5248/files |
| Please reload this page | https://github.com/python/cpython/pull/5248/files |
|
bpo-32248 - Implement ResourceReader and get_resource_reader() for zipimport
| https://github.com/python/cpython/pull/5248/files#top |
|
Show all changes
24 commits
| https://github.com/python/cpython/pull/5248/files |
|
c1d7720
Checkpointing
warsaw Jan 5, 2018
| https://github.com/python/cpython/pull/5248/commits/c1d7720911241cfccf7d1730604c75d5e076b31e |
|
d645574
Implement get_resource_reader() API
warsaw Jan 5, 2018
| https://github.com/python/cpython/pull/5248/commits/d6455746ea3108118936a00e87ce57f4f50d0975 |
|
fce8017
Checkpointing
warsaw Jan 8, 2018
| https://github.com/python/cpython/pull/5248/commits/fce8017192cc4c40ce9dd418a1a3880c25e43d3a |
|
ef4f773
Merge branch 'master' into resource-reader
warsaw Jan 11, 2018
| https://github.com/python/cpython/pull/5248/commits/ef4f7732181d681e45a751e919dc9b1669685d3f |
|
6d347b8
Merge branch 'master' into resource-reader
warsaw Jan 12, 2018
| https://github.com/python/cpython/pull/5248/commits/6d347b8dafd033d97dabfb9e4f455b994ab2f475 |
|
29cc5f7
Revert changes to zipimport; we'll do those separately
warsaw Jan 12, 2018
| https://github.com/python/cpython/pull/5248/commits/29cc5f74e5d7f05d1ee74580b06010412f2142c8 |
|
bec7821
Change the sense to a positive test
warsaw Jan 12, 2018
| https://github.com/python/cpython/pull/5248/commits/bec7821f0eef6ef2aef78296d4e5dded133a73a7 |
|
d5d2446
Merge branch 'master' into resource-reader
warsaw Jan 13, 2018
| https://github.com/python/cpython/pull/5248/commits/d5d2446d65c377f20a84376b3f0bedb6ac4a86ab |
|
547f078
ResourceReader needs to be an ABC.
warsaw Jan 13, 2018
| https://github.com/python/cpython/pull/5248/commits/547f07890ee2dfc39adc6e06f4dfb9557626540e |
|
c165144
Merge branch 'master' into resource-reader
warsaw Jan 15, 2018
| https://github.com/python/cpython/pull/5248/commits/c1651446529780bea4b472757c9588448c8b1404 |
|
3ea98cf
WIP: restore zip importer work
warsaw Jan 15, 2018
| https://github.com/python/cpython/pull/5248/commits/3ea98cfe30378db90ab6eb459fae8f7f41cc982c |
|
5ca6bc5
Merge branch 'master' into zipresources
warsaw Jan 16, 2018
| https://github.com/python/cpython/pull/5248/commits/5ca6bc5dfc3eaeb655c0d4765af2421eabae051a |
|
9f2a284
Merge branch 'master' into zipresources
warsaw Jan 17, 2018
| https://github.com/python/cpython/pull/5248/commits/9f2a284eb902b5496aed934cce24ba9962b774b0 |
|
a70f4e4
Merge branch 'master' into zipresources
warsaw Jan 19, 2018
| https://github.com/python/cpython/pull/5248/commits/a70f4e41b99abb91d00ea8636c2827abdeb62094 |
|
2459adb
Hook in ZipImporter.get_resource_reader()
warsaw Jan 19, 2018
| https://github.com/python/cpython/pull/5248/commits/2459adbd28b259d9837c5253d2fde6236d510fc8 |
|
a40d6e7
Flesh out the trampoline
warsaw Jan 19, 2018
| https://github.com/python/cpython/pull/5248/commits/a40d6e7985f7bef1ab796267bcf5e05d766ef777 |
|
d1af1f4
open_resource(), resource_path(), is_resource()
warsaw Jan 19, 2018
| https://github.com/python/cpython/pull/5248/commits/d1af1f4a1342b7bdacc33ec038b0272975dc6cfc |
|
ba359e1
Complete the implementation for contents()
warsaw Jan 20, 2018
| https://github.com/python/cpython/pull/5248/commits/ba359e116a7c2da49089a14e32b6d18a0e6cc0ba |
|
0d4ea2a
Merge branch 'master' into zipresources
warsaw Jan 20, 2018
| https://github.com/python/cpython/pull/5248/commits/0d4ea2a9263774a92b8b458ec66b2ef2b518698b |
|
3101ef8
Add news
warsaw Jan 20, 2018
| https://github.com/python/cpython/pull/5248/commits/3101ef85a10c1f56054c122e095c2681a72c9826 |
|
f97bd09
Merge branch 'master' into zipresources
warsaw Jan 20, 2018
| https://github.com/python/cpython/pull/5248/commits/f97bd09824c246c0239515e14f89849bcd8e3397 |
|
b34d15f
Merge branch 'master' into zipresources
warsaw Jan 24, 2018
| https://github.com/python/cpython/pull/5248/commits/b34d15f4c235d01689ff28bd25409ff36eb82417 |
|
e5e3879
Shorten the NEWS file entry and expand a bit on the What's New entry.
warsaw Jan 24, 2018
| https://github.com/python/cpython/pull/5248/commits/e5e387967e658e0bd1fa77a3592a943b009546e5 |
|
e2ea845
PyObject_CallMethod() simplifies things
warsaw Jan 24, 2018
| https://github.com/python/cpython/pull/5248/commits/e2ea8453884758c6bcda5b3a7664548cd6e9f49c |
|
Clear filters
| https://github.com/python/cpython/pull/5248/files |
| Please reload this page | https://github.com/python/cpython/pull/5248/files |
| Please reload this page | https://github.com/python/cpython/pull/5248/files |
|
3.7.rst
| https://github.com/python/cpython/pull/5248/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52 |
|
resources.py
| https://github.com/python/cpython/pull/5248/files#diff-b5f6dc7e442a38699664db6f9be914f60cdfbd1ee1f97eff87a6b873bff4aaeb |
|
2017-12-15-15-34-12.bpo-32248.zmO8G2.rst
| https://github.com/python/cpython/pull/5248/files#diff-6afa50f4ace8a20f28ffbb82332f3baaba133139eadb1745c7c2fba921cd85dc |
|
zipimport.c.h
| https://github.com/python/cpython/pull/5248/files#diff-c1ffe6c74a29f8a096f2ccacfdc5b0acd5ed95ee24a347ff30c622717b68acdb |
|
zipimport.c
| https://github.com/python/cpython/pull/5248/files#diff-1838e6b1120f7180a5ea08be498a8a3d89dab3cb2f6eb4561fb7e979844d62b2 |
| Doc/whatsnew/3.7.rst | https://github.com/python/cpython/pull/5248/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52 |
|
View file
| https://github.com/warsaw/cpython/blob/e2ea8453884758c6bcda5b3a7664548cd6e9f49c/Doc/whatsnew/3.7.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/5248/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/5248/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52 |
|
| https://github.com/python/cpython/pull/5248/files#diff-830b405713d1c40982ffa918864e39c40c1b318d79b8dd2b523646dc3bd18b52 |
| Lib/importlib/resources.py | https://github.com/python/cpython/pull/5248/files#diff-b5f6dc7e442a38699664db6f9be914f60cdfbd1ee1f97eff87a6b873bff4aaeb |
|
View file
| https://github.com/warsaw/cpython/blob/e2ea8453884758c6bcda5b3a7664548cd6e9f49c/Lib/importlib/resources.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/5248/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/5248/files#diff-b5f6dc7e442a38699664db6f9be914f60cdfbd1ee1f97eff87a6b873bff4aaeb |
|
| https://github.com/python/cpython/pull/5248/files#diff-b5f6dc7e442a38699664db6f9be914f60cdfbd1ee1f97eff87a6b873bff4aaeb |
|
| https://github.com/python/cpython/pull/5248/files#diff-b5f6dc7e442a38699664db6f9be914f60cdfbd1ee1f97eff87a6b873bff4aaeb |
|
| https://github.com/python/cpython/pull/5248/files#diff-b5f6dc7e442a38699664db6f9be914f60cdfbd1ee1f97eff87a6b873bff4aaeb |
| zooba | https://github.com/zooba |
| Jan 23, 2018 | https://github.com/python/cpython/pull/5248/files#r163164490 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/5248/files |
| warsaw | https://github.com/warsaw |
| Jan 24, 2018 | https://github.com/python/cpython/pull/5248/files#r163548954 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| forward slashes | https://web.archive.org/web/20070928174718/http://www.pkware.com/documents/casestudies/APPNOTE.TXT |
| Please reload this page | https://github.com/python/cpython/pull/5248/files |
| brettcannon | https://github.com/brettcannon |
| Jan 24, 2018 | https://github.com/python/cpython/pull/5248/files#r163662796 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/5248/files |
| brettcannon | https://github.com/brettcannon |
| Jan 24, 2018 | https://github.com/python/cpython/pull/5248/files#r163663174 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/5248/files |
| warsaw | https://github.com/warsaw |
| Jan 24, 2018 | https://github.com/python/cpython/pull/5248/files#r163670460 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/5248/files |
| Misc/NEWS.d/next/Library/2017-12-15-15-34-12.bpo-32248.zmO8G2.rst | https://github.com/python/cpython/pull/5248/files#diff-6afa50f4ace8a20f28ffbb82332f3baaba133139eadb1745c7c2fba921cd85dc |
|
View file
| https://github.com/warsaw/cpython/blob/e2ea8453884758c6bcda5b3a7664548cd6e9f49c/Misc/NEWS.d/next/Library/2017-12-15-15-34-12.bpo-32248.zmO8G2.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/5248/{{ revealButtonHref }} |
| Modules/clinic/zipimport.c.h | https://github.com/python/cpython/pull/5248/files#diff-c1ffe6c74a29f8a096f2ccacfdc5b0acd5ed95ee24a347ff30c622717b68acdb |
|
View file
| https://github.com/warsaw/cpython/blob/e2ea8453884758c6bcda5b3a7664548cd6e9f49c/Modules/clinic/zipimport.c.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/5248/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/5248/files#diff-c1ffe6c74a29f8a096f2ccacfdc5b0acd5ed95ee24a347ff30c622717b68acdb |
| Modules/zipimport.c | https://github.com/python/cpython/pull/5248/files#diff-1838e6b1120f7180a5ea08be498a8a3d89dab3cb2f6eb4561fb7e979844d62b2 |
|
View file
| https://github.com/warsaw/cpython/blob/e2ea8453884758c6bcda5b3a7664548cd6e9f49c/Modules/zipimport.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/5248/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/5248/files#diff-1838e6b1120f7180a5ea08be498a8a3d89dab3cb2f6eb4561fb7e979844d62b2 |
|
| https://github.com/python/cpython/pull/5248/files#diff-1838e6b1120f7180a5ea08be498a8a3d89dab3cb2f6eb4561fb7e979844d62b2 |
|
| https://github.com/python/cpython/pull/5248/files#diff-1838e6b1120f7180a5ea08be498a8a3d89dab3cb2f6eb4561fb7e979844d62b2 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |