| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:9254c1a9-b0ee-5493-a6cf-5d85df7ba49f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 87EE:1D90CC:17967FB:2021278:6A4F0B57 |
| html-safe-nonce | 405d1b03cede1a648e6f4098ff2279dccb8f9dfde49d9f06f8c97886d5e5f375 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0VFOjFEOTBDQzoxNzk2N0ZCOjIwMjEyNzg6NkE0RjBCNTciLCJ2aXNpdG9yX2lkIjoiNDMzNDE3ODEwMjkyODE0OTMzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d15c0c40e88ac6ab5b07f78276b8cbac7edd329073837e19de0e4914d49d4614 |
| hovercard-subject-tag | pull_request:165570238 |
| 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/5385/files |
| twitter:image | https://avatars.githubusercontent.com/u/1922815?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1922815?s=400&v=4 |
| og:image:alt | This PR adds a compresslevel parameter to zipfile.ZipFile(), similar to the
one that exists for tarfile.open().
A few things to point out:
The default compression type and level remain unchanged. ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/5385/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F5385%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/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/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/enterprise/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%2F5385%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/5385/files |
| Reload | https://github.com/python/cpython/pull/5385/files |
| Reload | https://github.com/python/cpython/pull/5385/files |
| Please reload this page | https://github.com/python/cpython/pull/5385/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/5385/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 |
| gpshead | https://github.com/gpshead |
| python:master | https://github.com/python/cpython/tree/master |
| bbayles:zipfile-compresslevel | https://github.com/bbayles/cpython/tree/zipfile-compresslevel |
|
Conversation
12
| https://github.com/python/cpython/pull/5385 |
|
Commits
13
| https://github.com/python/cpython/pull/5385/commits |
|
Checks
0
| https://github.com/python/cpython/pull/5385/checks |
|
Files changed
| https://github.com/python/cpython/pull/5385/files |
| Please reload this page | https://github.com/python/cpython/pull/5385/files |
|
bpo-21417: Compression level for zipfile
| https://github.com/python/cpython/pull/5385/files#top |
|
Show all changes
13 commits
| https://github.com/python/cpython/pull/5385/files |
|
23f3310
First stab at adding compresslevel to zipfile
bbayles Jan 27, 2018
| https://github.com/python/cpython/pull/5385/commits/23f3310331474440a8c16d98f808427fad9d0a3c |
|
b029977
Smooth out errors for bz2 and lzma
bbayles Jan 27, 2018
| https://github.com/python/cpython/pull/5385/commits/b02997775bcb5fa200e3951a52bfe7d748079769 |
|
9c57700
Remove now-spurious comments
bbayles Jan 27, 2018
| https://github.com/python/cpython/pull/5385/commits/9c5770042ed9e67bea3bc2b162d5cce7aa9f2a4d |
|
1508073
No it was not needed
bbayles Jan 27, 2018
| https://github.com/python/cpython/pull/5385/commits/15080736f30df418d3b9c4cbecd6c039fb1fb361 |
|
9b5d74e
Don't open the PyZipFile box yet
bbayles Jan 27, 2018
| https://github.com/python/cpython/pull/5385/commits/9b5d74ed9a0d2b8fc3c1f4a380f3be618c6e8877 |
|
6504581
Add basic notes about compresslevel to docs
bbayles Jan 27, 2018
| https://github.com/python/cpython/pull/5385/commits/65045819e0459b1e40cf79ce39745bd5b531436f |
|
46eb503
Add basic tests for compresslevel
bbayles Jan 27, 2018
| https://github.com/python/cpython/pull/5385/commits/46eb50360a98d8459bf0fda4d164454c20c39d1e |
|
7ff8272
Make ZipInfo compression level private
bbayles Jan 28, 2018
| https://github.com/python/cpython/pull/5385/commits/7ff82720ffb914277300e2dfa0e4b93264b453c1 |
|
8310c79
Test implicit and overridden compression levels
bbayles Jan 28, 2018
| https://github.com/python/cpython/pull/5385/commits/8310c7951b8f0f37d6a7b59b4ab570080195d4a2 |
|
8ab542c
Add Misc/NEWS entry
bbayles Jan 28, 2018
| https://github.com/python/cpython/pull/5385/commits/8ab542c3e6198578ebd71a4bd41d135378680607 |
|
0e3f9ce
Correct typo in test comment.
bbayles Jan 29, 2018
| https://github.com/python/cpython/pull/5385/commits/0e3f9ced44bd5121e7f4e8f3c141d44ffab72358 |
|
3925fc2
compress_level to compresslevel throughout
bbayles Jan 29, 2018
| https://github.com/python/cpython/pull/5385/commits/3925fc2f310b4eb4a46f16fa7bb562b11242a8b0 |
|
c390f64
Update compresslevel documentation targets
bbayles Jan 29, 2018
| https://github.com/python/cpython/pull/5385/commits/c390f645d5bccade0d7744164483a87729aa5346 |
|
Clear filters
| https://github.com/python/cpython/pull/5385/files |
| Please reload this page | https://github.com/python/cpython/pull/5385/files |
| Please reload this page | https://github.com/python/cpython/pull/5385/files |
|
zipfile.rst
| https://github.com/python/cpython/pull/5385/files#diff-8a20c37fb313d7b188ae15bb57b351cc2ab73cbdcb6b2aee44cf2f8451768086 |
|
test_zipfile.py
| https://github.com/python/cpython/pull/5385/files#diff-88215aededc3f81c55ba2432fe67617be9fc3faff9cb10e0c01f710adfcba426 |
|
zipfile.py
| https://github.com/python/cpython/pull/5385/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851 |
|
2018-01-28-07-55-10.bpo-21417.JFnV99.rst
| https://github.com/python/cpython/pull/5385/files#diff-56baa489db95aefb1ca9878f396997c2658bfce7f3c0d5b442eed58e5c04f677 |
| Doc/library/zipfile.rst | https://github.com/python/cpython/pull/5385/files#diff-8a20c37fb313d7b188ae15bb57b351cc2ab73cbdcb6b2aee44cf2f8451768086 |
|
View file
| https://github.com/bbayles/cpython/blob/c390f645d5bccade0d7744164483a87729aa5346/Doc/library/zipfile.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/5385/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/5385/files#diff-8a20c37fb313d7b188ae15bb57b351cc2ab73cbdcb6b2aee44cf2f8451768086 |
| bbayles | https://github.com/bbayles |
| Jan 28, 2018 | https://github.com/python/cpython/pull/5385/files#r164301469 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| style guide | https://devguide.python.org/documenting/#use-of-whitespace |
| Please reload this page | https://github.com/python/cpython/pull/5385/files |
|
| https://github.com/python/cpython/pull/5385/files#diff-8a20c37fb313d7b188ae15bb57b351cc2ab73cbdcb6b2aee44cf2f8451768086 |
|
| https://github.com/python/cpython/pull/5385/files#diff-8a20c37fb313d7b188ae15bb57b351cc2ab73cbdcb6b2aee44cf2f8451768086 |
|
| https://github.com/python/cpython/pull/5385/files#diff-8a20c37fb313d7b188ae15bb57b351cc2ab73cbdcb6b2aee44cf2f8451768086 |
|
| https://github.com/python/cpython/pull/5385/files#diff-8a20c37fb313d7b188ae15bb57b351cc2ab73cbdcb6b2aee44cf2f8451768086 |
|
| https://github.com/python/cpython/pull/5385/files#diff-8a20c37fb313d7b188ae15bb57b351cc2ab73cbdcb6b2aee44cf2f8451768086 |
|
| https://github.com/python/cpython/pull/5385/files#diff-8a20c37fb313d7b188ae15bb57b351cc2ab73cbdcb6b2aee44cf2f8451768086 |
|
| https://github.com/python/cpython/pull/5385/files#diff-8a20c37fb313d7b188ae15bb57b351cc2ab73cbdcb6b2aee44cf2f8451768086 |
|
| https://github.com/python/cpython/pull/5385/files#diff-8a20c37fb313d7b188ae15bb57b351cc2ab73cbdcb6b2aee44cf2f8451768086 |
| Lib/test/test_zipfile.py | https://github.com/python/cpython/pull/5385/files#diff-88215aededc3f81c55ba2432fe67617be9fc3faff9cb10e0c01f710adfcba426 |
|
View file
| https://github.com/bbayles/cpython/blob/c390f645d5bccade0d7744164483a87729aa5346/Lib/test/test_zipfile.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/5385/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/5385/files#diff-88215aededc3f81c55ba2432fe67617be9fc3faff9cb10e0c01f710adfcba426 |
|
| https://github.com/python/cpython/pull/5385/files#diff-88215aededc3f81c55ba2432fe67617be9fc3faff9cb10e0c01f710adfcba426 |
|
| https://github.com/python/cpython/pull/5385/files#diff-88215aededc3f81c55ba2432fe67617be9fc3faff9cb10e0c01f710adfcba426 |
|
| https://github.com/python/cpython/pull/5385/files#diff-88215aededc3f81c55ba2432fe67617be9fc3faff9cb10e0c01f710adfcba426 |
|
| https://github.com/python/cpython/pull/5385/files#diff-88215aededc3f81c55ba2432fe67617be9fc3faff9cb10e0c01f710adfcba426 |
|
| https://github.com/python/cpython/pull/5385/files#diff-88215aededc3f81c55ba2432fe67617be9fc3faff9cb10e0c01f710adfcba426 |
| Lib/zipfile.py | https://github.com/python/cpython/pull/5385/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851 |
|
View file
| https://github.com/bbayles/cpython/blob/c390f645d5bccade0d7744164483a87729aa5346/Lib/zipfile.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/5385/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/5385/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851 |
|
| https://github.com/python/cpython/pull/5385/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851 |
|
| https://github.com/python/cpython/pull/5385/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851 |
|
| https://github.com/python/cpython/pull/5385/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851 |
|
| https://github.com/python/cpython/pull/5385/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851 |
|
| https://github.com/python/cpython/pull/5385/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851 |
|
| https://github.com/python/cpython/pull/5385/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851 |
|
| https://github.com/python/cpython/pull/5385/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851 |
|
| https://github.com/python/cpython/pull/5385/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851 |
|
| https://github.com/python/cpython/pull/5385/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851 |
|
| https://github.com/python/cpython/pull/5385/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851 |
|
| https://github.com/python/cpython/pull/5385/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851 |
|
| https://github.com/python/cpython/pull/5385/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851 |
|
| https://github.com/python/cpython/pull/5385/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851 |
|
| https://github.com/python/cpython/pull/5385/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851 |
|
| https://github.com/python/cpython/pull/5385/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851 |
|
| https://github.com/python/cpython/pull/5385/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851 |
|
| https://github.com/python/cpython/pull/5385/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851 |
|
| https://github.com/python/cpython/pull/5385/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851 |
|
| https://github.com/python/cpython/pull/5385/files#diff-b5cf7374d79aae191c1e38d0959527e0bbb7a95e0df5b125a8b1056cc2c54851 |
| Misc/NEWS.d/next/Library/2018-01-28-07-55-10.bpo-21417.JFnV99.rst | https://github.com/python/cpython/pull/5385/files#diff-56baa489db95aefb1ca9878f396997c2658bfce7f3c0d5b442eed58e5c04f677 |
|
View file
| https://github.com/bbayles/cpython/blob/c390f645d5bccade0d7744164483a87729aa5346/Misc/NEWS.d/next/Library/2018-01-28-07-55-10.bpo-21417.JFnV99.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/5385/{{ revealButtonHref }} |
|
| 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 |