| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:72e2ad60-4dbd-307b-e5a3-d89e0bd456be |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A93A:2F0FE8:13D8FB7:1A5057D:6A534786 |
| html-safe-nonce | b31e0769c6d90b6d20f43f3d99c9a022844c99fa9fd62150db8bb2681d837193 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTNBOjJGMEZFODoxM0Q4RkI3OjFBNTA1N0Q6NkE1MzQ3ODYiLCJ2aXNpdG9yX2lkIjoiNDcwMDQ0MTEwMjc3MTI0Mjg4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f5c225bbb09c0d7a54d81573c721dc2c270023c67dd37fcb190acf1bda108442 |
| hovercard-subject-tag | pull_request:2541669210 |
| 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/134627/files |
| twitter:image | https://avatars.githubusercontent.com/u/531417?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/531417?s=400&v=4 |
| og:image:alt | This is a revised version of PR #103033, implementing two new methods in zipfile.ZipFile: remove() and repack(), as suggested in this comment.
Features
ZipFile.remove(zinfo_or_arcname)
Removes a f... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/134627/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F134627%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%2F134627%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/134627/files |
| Reload | https://github.com/python/cpython/pull/134627/files |
| Reload | https://github.com/python/cpython/pull/134627/files |
| Please reload this page | https://github.com/python/cpython/pull/134627/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/134627/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
35k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
73.8k
| 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:main | https://github.com/python/cpython/tree/main |
| danny0838:gh-51067-2 | https://github.com/danny0838/cpython/tree/gh-51067-2 |
|
Conversation
83
| https://github.com/python/cpython/pull/134627 |
|
Commits
88
| https://github.com/python/cpython/pull/134627/commits |
|
Checks
52
| https://github.com/python/cpython/pull/134627/checks |
|
Files changed
| https://github.com/python/cpython/pull/134627/files |
| Please reload this page | https://github.com/python/cpython/pull/134627/files |
|
gh-51067: Add remove() and repack() to ZipFile
| https://github.com/python/cpython/pull/134627/files#top |
|
Show all changes
88 commits
| https://github.com/python/cpython/pull/134627/files |
|
6aed859
Add `remove()` and `repack()` to `ZipFile`
danny0838 May 24, 2025
| https://github.com/python/cpython/pull/134627/commits/6aed859adec5134ab756520c0dc5f7feeae6cab8 |
|
5453dbc
📜🤖 Added by blurb_it.
blurb-it[bot] May 24, 2025
| https://github.com/python/cpython/pull/134627/commits/5453dbc0a6ecdf892f36889a928037f4f57d636a |
|
80ab2e2
Fix and optimize test code
danny0838 May 24, 2025
| https://github.com/python/cpython/pull/134627/commits/80ab2e27e4bb63cea3e7aa3c022236a76e05af68 |
|
72c2a66
Handle common setups with `setUpClass`
danny0838 May 24, 2025
| https://github.com/python/cpython/pull/134627/commits/72c2a6678f48454761edc4fd59f57862dd5d1b6c |
|
a4b410b
Add tests for mode `w` and `x` for `remove()`
danny0838 May 24, 2025
| https://github.com/python/cpython/pull/134627/commits/a4b410b9f6b6160092f073eb4f3aa922f18c8517 |
|
a9e85c6
Introduce `_calc_initial_entry_offset` and refactor
danny0838 May 24, 2025
| https://github.com/python/cpython/pull/134627/commits/a9e85c654c8ba7d3b4be5cbe368c7a1934b0f16c |
|
236cd06
Optimize `_calc_initial_entry_offset` by introducing cache
danny0838 May 24, 2025
| https://github.com/python/cpython/pull/134627/commits/236cd06084176266bd885b4e9361cb3acb00a298 |
|
bdc58c7
Introduce `_validate_local_file_entry` and refactor
danny0838 May 24, 2025
| https://github.com/python/cpython/pull/134627/commits/bdc58c7111f5346cc1e20800fb4b7dd69f31eeed |
|
c3c8345
Introduce `_debug` and refactor
danny0838 May 24, 2025
| https://github.com/python/cpython/pull/134627/commits/c3c834505ff0017a2ffd56c264ed81444cd65780 |
|
1b7d75a
Introduce `_move_entry_data` and rework chunk_size passing
danny0838 May 25, 2025
| https://github.com/python/cpython/pull/134627/commits/1b7d75a4ea4e3f8db516bfa74fb56ac2ccd61cf2 |
|
51c9254
Refactor `_validate_local_file_entry`
danny0838 May 25, 2025
| https://github.com/python/cpython/pull/134627/commits/51c9254cfb738eddec9e14d82e301aa0456e02c5 |
|
0d971d8
Add `strict_descriptor` option
danny0838 May 25, 2025
| https://github.com/python/cpython/pull/134627/commits/0d971d81b5c65583d3995d8d986655284d24c412 |
|
8f0a504
Fix and improve validation tests
danny0838 May 25, 2025
| https://github.com/python/cpython/pull/134627/commits/8f0a504b205bc4e84f9a7b12497d03edd91064f5 |
|
0cb8682
Remove obsolete NameToInfo updating
danny0838 May 25, 2025
| https://github.com/python/cpython/pull/134627/commits/0cb8682dfa1fdc14c0b3167ea938db44dc4f154d |
|
a788a00
Use `zinfo` rather than `info`
danny0838 May 25, 2025
| https://github.com/python/cpython/pull/134627/commits/a788a001a4ba5b1453ad02268060629c72ccbc0b |
|
ae01b8c
Raise on overlapping file blocks
danny0838 May 25, 2025
| https://github.com/python/cpython/pull/134627/commits/ae01b8cd69f53a509b5782ad080c9254ae13edb1 |
|
edee203
Rework writing protection
danny0838 May 25, 2025
| https://github.com/python/cpython/pull/134627/commits/edee2033c414f07dac405168a98c9f87104fded8 |
|
555ac78
Update doc
danny0838 May 25, 2025
| https://github.com/python/cpython/pull/134627/commits/555ac78aec9487131785d0645cba935c1cd411d2 |
|
95fde31
Fix typo
danny0838 May 26, 2025
| https://github.com/python/cpython/pull/134627/commits/95fde316ab56be7099c3454b741dade89509a96c |
|
8a448e4
Add test for bytes between file entries
danny0838 May 26, 2025
| https://github.com/python/cpython/pull/134627/commits/8a448e452b761bfa29c779766bc46efade541bb5 |
|
4c35eb2
Check `testzip()` after zip file closed
danny0838 May 26, 2025
| https://github.com/python/cpython/pull/134627/commits/4c35eb262d8727846e03bfa121ba13e62c54faa3 |
|
926338c
Support `repack(removed)`
danny0838 May 26, 2025
| https://github.com/python/cpython/pull/134627/commits/926338cbc1c7ebb6bcaf8107fd35ce9b6931b807 |
|
e76f9a1
Fix bytes between entries be removed when `removed` is passed
danny0838 May 26, 2025
| https://github.com/python/cpython/pull/134627/commits/e76f9a1bc10ac09faffcc09ca254403cd0623856 |
|
93f4c25
Fix bad test code
danny0838 May 26, 2025
| https://github.com/python/cpython/pull/134627/commits/93f4c25d393423c00ba400f7b010d912b836e7d3 |
|
9e94209
Revise docstring
danny0838 May 27, 2025
| https://github.com/python/cpython/pull/134627/commits/9e94209e94e65d7ddd73c6c691d8af9a94f039c8 |
|
3ef72c6
Add `tearDown` for tests
danny0838 May 28, 2025
| https://github.com/python/cpython/pull/134627/commits/3ef72c68be70ad0f63f3cc864121a03049dd7fda |
|
fbf7588
Rename methods and parameters
danny0838 May 28, 2025
| https://github.com/python/cpython/pull/134627/commits/fbf75888fcec8589029f13a0af16022c5c318bc0 |
|
81a419a
Adjust parameter order
danny0838 May 28, 2025
| https://github.com/python/cpython/pull/134627/commits/81a419aaf79b411da88aaa0df577b038d96ffe0f |
|
c62a455
Optimize code and revise comment
danny0838 May 28, 2025
| https://github.com/python/cpython/pull/134627/commits/c62a4556ff9d86c3a969fa932886520327d2a62c |
|
a05353c
Improve debug for `_ZipRepacker.repack()`
danny0838 May 29, 2025
| https://github.com/python/cpython/pull/134627/commits/a05353c47674af813388ffcb415e67dbc3146e11 |
|
3d0240c
Rework `_validate_local_file_entry_sequence` to return size or None
danny0838 May 29, 2025
| https://github.com/python/cpython/pull/134627/commits/3d0240c1a3eab2890509b1d0d96e980a2b744d40 |
|
31c4c93
Rework `_validate_local_file_entry_sequence` to allow passing no `che…
danny0838 May 29, 2025
| https://github.com/python/cpython/pull/134627/commits/31c4c936c6e5451f939e52818c1c35a742b31130 |
|
f8fade1
Introduce `_scan_data_descriptor_no_sig_by_decompression`
danny0838 May 30, 2025
| https://github.com/python/cpython/pull/134627/commits/f8fade17a0335e3d4139788f84855907cf595424 |
|
c80d21b
Strip only entries immediately following a referenced entry
danny0838 May 29, 2025
| https://github.com/python/cpython/pull/134627/commits/c80d21bf991dff0369178f504212642f4000f769 |
|
e1caea9
Adjust method names
danny0838 May 30, 2025
| https://github.com/python/cpython/pull/134627/commits/e1caea9b30a917e375e3dd481ba53c211afcb2b0 |
|
2b23d46
Add memory usage test
danny0838 May 30, 2025
| https://github.com/python/cpython/pull/134627/commits/2b23d46d9503cc6afb5d6927737603d3f3ab16d8 |
|
de4f15b
Fix rst
danny0838 May 30, 2025
| https://github.com/python/cpython/pull/134627/commits/de4f15bb4aebe5a346d5b143d10e3881c7f5a454 |
|
ea3259f
Optimize code
danny0838 Jun 1, 2025
| https://github.com/python/cpython/pull/134627/commits/ea3259fba7208ca588e34bc343842bc459cce1c1 |
|
fef92c4
Fix and optimize `_iter_scan_signature`
danny0838 Jun 1, 2025
| https://github.com/python/cpython/pull/134627/commits/fef92c45a308fe730ddce433286c2ebbfacaac0f |
|
8067b0c
Fix `_scan_data_descriptor`
danny0838 Jun 1, 2025
| https://github.com/python/cpython/pull/134627/commits/8067b0c4894fcdf72f8723340e11be17721df606 |
|
92d3a9c
Fix and optimize `_scan_data_descriptor_no_sig`
danny0838 Jun 1, 2025
| https://github.com/python/cpython/pull/134627/commits/92d3a9c418b812be21b51d8de6de72c4fb4b14f0 |
|
b5d7ae3
Rename `_trace_compressed_block_end`
danny0838 Jun 1, 2025
| https://github.com/python/cpython/pull/134627/commits/b5d7ae3a6a90a554417c60ff833dba4cdb10cb8a |
|
1d5ec61
Fix `_scan_data_descriptor_no_sig_by_decompression`
danny0838 Jun 1, 2025
| https://github.com/python/cpython/pull/134627/commits/1d5ec6133715cb21bdd8202551c452ce3eef3bd9 |
|
db9d0d6
Add tests for `_ZipRepacker`
danny0838 Jun 1, 2025
| https://github.com/python/cpython/pull/134627/commits/db9d0d61990ea21095657e5cb430c5685bad56f5 |
|
aaa566c
Remove unneeded import
danny0838 Jun 1, 2025
| https://github.com/python/cpython/pull/134627/commits/aaa566c94ccce05c8a0e3e58654c6c2ebcad255f |
|
578c7c8
Add requirements
danny0838 Jun 1, 2025
| https://github.com/python/cpython/pull/134627/commits/578c7c8b6a14f8ba022e49f41b531222a7067cc7 |
|
c470c33
Fix `_scan_data_descriptor_no_sig_by_decompression` when library not …
danny0838 Jun 1, 2025
| https://github.com/python/cpython/pull/134627/commits/c470c33389d71a9c2a5ebbb0410f5dd1d2158f7d |
|
b1dcb07
Test with pre-calculated CRC
danny0838 Jun 1, 2025
| https://github.com/python/cpython/pull/134627/commits/b1dcb07f33a85ff88f0d3c5d2a117af53a33b4d4 |
|
04cddef
Remove unneeded import
danny0838 Jun 1, 2025
| https://github.com/python/cpython/pull/134627/commits/04cddef2f71fd8c51a72673b337b7e5113e51e6f |
|
797a62c
Fix and optimize `repack`
danny0838 Jun 1, 2025
| https://github.com/python/cpython/pull/134627/commits/797a62cd8f831aac39199a4a207b2d1cf620eaf6 |
|
3b2f232
Remove unneeded catch type
danny0838 Jun 14, 2025
| https://github.com/python/cpython/pull/134627/commits/3b2f2328b6b8b38e9258347c67afd6f32139afd5 |
|
cb549c9
Patch more explicitly
danny0838 Jun 14, 2025
| https://github.com/python/cpython/pull/134627/commits/cb549c95f1d924e66af8525f614265ffa4666fcc |
|
0f50a6f
Remove unneeded variables
danny0838 Jun 14, 2025
| https://github.com/python/cpython/pull/134627/commits/0f50a6f561c8983c7505ca81a42d8840cf6faec4 |
|
c759b63
Improve dependency check for decompression tests
danny0838 Jun 14, 2025
| https://github.com/python/cpython/pull/134627/commits/c759b639ee8c0d2162965409820ce97b28dbc540 |
|
1ece5b1
Refactor and optimize `RepackHelperMixin`
danny0838 Jun 14, 2025
| https://github.com/python/cpython/pull/134627/commits/1ece5b17d57b4abebbc16f976b66bf31eb3e62a7 |
|
ce88616
Update NEWS
danny0838 Jun 20, 2025
| https://github.com/python/cpython/pull/134627/commits/ce886161f12a2f799517cfa25b85bb8e14767a75 |
|
5f093e5
Sync with danny0838/zipremove@1691ca25bf971cf1e45d5ed7d22c512636f20cb8
danny0838 Jun 20, 2025
| https://github.com/python/cpython/pull/134627/commits/5f093e5175db32e66a8b2b32313960189230d84e |
|
11c0937
Revise NEWS
danny0838 Jun 20, 2025
| https://github.com/python/cpython/pull/134627/commits/11c09378b296b9c4623a5301d9f5bd9b7e37a130 |
|
4b2176e
Sync with danny0838/zipremove@1843d87b70e6cb129fb55446eaf4486a87d2af4d
danny0838 Jun 21, 2025
| https://github.com/python/cpython/pull/134627/commits/4b2176e89076ca2b25d1deef02d49cbd0e31be6b |
|
d9824ce
Fix timezone related timestamp issue
danny0838 Jun 21, 2025
| https://github.com/python/cpython/pull/134627/commits/d9824ceaa6e3398c7e297653d5dfa3a403395dca |
|
85811ab
Simplify tests with data descriptors
danny0838 Jun 22, 2025
| https://github.com/python/cpython/pull/134627/commits/85811abea894968cb072a25f3d1dfe0ceb7f8c2a |
|
748ac63
Sync with danny0838/zipremove@e79042768f3c2541e0226f6bed3a9ff2ee04fac0
danny0838 Jun 23, 2025
| https://github.com/python/cpython/pull/134627/commits/748ac631adb86acd05177cc30ff46d4e4e67a372 |
|
001a8d0
Sync with danny0838/zipremove@87bcdb50411a355d24c35f31dcbe4273c0568cf8
danny0838 Jun 24, 2025
| https://github.com/python/cpython/pull/134627/commits/001a8d096386ffb9a16e595b4d655e839e5f465a |
|
3a364ce
Sync with danny0838/zipremove@6a78bd15de87afde510f8a1b6364365c6e17f252
danny0838 Jun 25, 2025
| https://github.com/python/cpython/pull/134627/commits/3a364ce6992501f44f0a098ec3122858db66929d |
|
0832528
Sync with danny0838/zipremove@092f98b4d7b3a0cd335fe4ba64e7090ebb3dc6da
danny0838 Jun 27, 2025
| https://github.com/python/cpython/pull/134627/commits/0832528fa540b71dda8209f40cba40f6f567f725 |
|
f20ec5d
Revise doc for `repack`
danny0838 Jun 28, 2025
| https://github.com/python/cpython/pull/134627/commits/f20ec5dfdaf1acd354c466770351aad9e4a5efcc |
|
8e69c09
Revise doc for `remove`
danny0838 Jun 28, 2025
| https://github.com/python/cpython/pull/134627/commits/8e69c099d5a14dd1496b2a8fe00d5cebcd78510f |
|
725b1a3
Update `data_offset`
danny0838 Jun 29, 2025
| https://github.com/python/cpython/pull/134627/commits/725b1a3e8580aa3e77375306dac8c2149c7026ef |
|
9e82bb7
Revise doc for `repack`
danny0838 Jul 1, 2025
| https://github.com/python/cpython/pull/134627/commits/9e82bb78266ff37ac671e50010db6157cb051472 |
|
93db94a
Revise doc for `repack`
danny0838 Jul 2, 2025
| https://github.com/python/cpython/pull/134627/commits/93db94a263345018acebe88b64452f136de8cd95 |
|
72673e0
Sync with danny0838/zipremove@8bedf7c9b891acadc3393d2f1267b78bd9b5a49a
danny0838 Jul 3, 2025
| https://github.com/python/cpython/pull/134627/commits/72673e0709d566bdce4416425974fce719537021 |
|
e926a95
Sync with danny0838/zipremove@86a240bf019fe9212b1e72c963306186163fb8b8
danny0838 Jul 22, 2025
| https://github.com/python/cpython/pull/134627/commits/e926a954edbd4aa518aeec88723c173686494137 |
|
ee3b753
Sync with danny0838/zipremove@8ad341bdd28a78033d7111a0532cb4714349aee3
danny0838 Jun 20, 2026
| https://github.com/python/cpython/pull/134627/commits/ee3b753fbe22cfa254b78bc25d6f3a41326dbfff |
|
5cbe51b
Merge remote-tracking branch 'origin/main' into gh-51067-2
gpshead Jun 20, 2026
| https://github.com/python/cpython/pull/134627/commits/5cbe51b96567b55f2540743bfbae4cb6b0e690c8 |
|
3dde04e
docs: clarify unspecified multiple entry removal, suggest ZipInfo
gpshead Jun 20, 2026
| https://github.com/python/cpython/pull/134627/commits/3dde04e8488f94c6ff66c294754afaf48e0a7f9d |
|
59d7b0d
whatsnew entry
gpshead Jun 20, 2026
| https://github.com/python/cpython/pull/134627/commits/59d7b0dc00e56ceb9bc681677ae74fb8644b10bd |
|
9376c2d
gh-51067: Default ZipFile.repack() to strict_descriptor=True
gpshead Jun 20, 2026
| https://github.com/python/cpython/pull/134627/commits/9376c2dc590489255311d7c225bf4a98795f6b8b |
|
cbae620
gh-51067: Document reliable space reclamation in ZipFile.repack()
gpshead Jun 20, 2026
| https://github.com/python/cpython/pull/134627/commits/cbae62058cff6d9230a18561598e083560c2dfb2 |
|
e0fcc69
gh-51067: Bound _validate_local_file_entry to the scanned gap
gpshead Jun 20, 2026
| https://github.com/python/cpython/pull/134627/commits/e0fcc69be33ed69d026bceed4aa71895a1a8438d |
|
adcd088
gh-51067: Guard _copy_bytes against short reads
gpshead Jun 20, 2026
| https://github.com/python/cpython/pull/134627/commits/adcd0883d4f65288c7ad252b09551ff5642c8906 |
|
b6dfda7
gh-51067: Spell out ZipFile.repack() keyword arguments
gpshead Jun 20, 2026
| https://github.com/python/cpython/pull/134627/commits/b6dfda7fdcdcc8df6d78161a25e0f82da2a65faf |
|
645910a
gh-51067: Move NEWS entry to Library section
gpshead Jun 20, 2026
| https://github.com/python/cpython/pull/134627/commits/645910a739f42e7d75f12696490cc3b76ad87181 |
|
01b493e
gh-51067: Fix docstring typos in _ZipRepacker
gpshead Jun 20, 2026
| https://github.com/python/cpython/pull/134627/commits/01b493e15d2227f2c441de16cd118de8ef0b33da |
|
d339b6c
gh-51067: Drop unreachable struct.error handler in no-sig DD scan
gpshead Jun 20, 2026
| https://github.com/python/cpython/pull/134627/commits/d339b6c1e8d791c9eeea7fcbd54b8f49e97bfd60 |
|
b6937c5
gh-51067: Use io.DEFAULT_BUFFER_SIZE in no-sig DD scan
gpshead Jun 20, 2026
| https://github.com/python/cpython/pull/134627/commits/b6937c5cf047ce98fe1233fefca2fb23f85bdd51 |
|
e7125e7
gh-51067: Replace ComparableZipInfo class with a function
gpshead Jun 20, 2026
| https://github.com/python/cpython/pull/134627/commits/e7125e7ab7120975e30aeb7f8bf45db70849b2fb |
|
eb29a30
gh-51067: Add _REPACK_CHUNK_SIZE constant
gpshead Jun 20, 2026
| https://github.com/python/cpython/pull/134627/commits/eb29a30bdeb566e0207e9daf3b97e6e175a11cbb |
|
b70a80b
gh-51067: Add tests for entry-size overshoot and _copy_bytes EOF
gpshead Jun 20, 2026
| https://github.com/python/cpython/pull/134627/commits/b70a80be67eae6ce89ee0154fe83e8550aab5d0a |
|
Clear filters
| https://github.com/python/cpython/pull/134627/files |
| Please reload this page | https://github.com/python/cpython/pull/134627/files |
| Please reload this page | https://github.com/python/cpython/pull/134627/files |
|
zipfile.rst
| https://github.com/python/cpython/pull/134627/files#diff-8a20c37fb313d7b188ae15bb57b351cc2ab73cbdcb6b2aee44cf2f8451768086 |
|
3.16.rst
| https://github.com/python/cpython/pull/134627/files#diff-e69e0be717f3409832d520e20348f62af39c9436ba1a9d82e842bc10e5eb51d7 |
|
test_core.py
| https://github.com/python/cpython/pull/134627/files#diff-3f7f7f9e251efe3ca7872e540c7840c85d508fc11150926df502ced996b98e9f |
|
test_zipfile64.py
| https://github.com/python/cpython/pull/134627/files#diff-eb2c99caccc7fc64c4006ec2e5718576b6cd7f76eefa04252b07852a4455d73e |
|
__init__.py
| https://github.com/python/cpython/pull/134627/files#diff-7629293618f2b3cf8ae7daf98526226fa12f047d71645a05497e6687aae10c76 |
|
2025-05-24-11-17-34.gh-issue-51067.yHOgfy.rst
| https://github.com/python/cpython/pull/134627/files#diff-83960f30f39e3dd6156ff46372dc99e6f92993d7ed427b344b98a6917cc1e475 |
| Doc/library/zipfile.rst | https://github.com/python/cpython/pull/134627/files#diff-8a20c37fb313d7b188ae15bb57b351cc2ab73cbdcb6b2aee44cf2f8451768086 |
|
View file
| https://github.com/danny0838/cpython/blob/b70a80be67eae6ce89ee0154fe83e8550aab5d0a/Doc/library/zipfile.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/134627/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/134627/files#diff-8a20c37fb313d7b188ae15bb57b351cc2ab73cbdcb6b2aee44cf2f8451768086 |
|
| https://github.com/python/cpython/pull/134627/files#diff-8a20c37fb313d7b188ae15bb57b351cc2ab73cbdcb6b2aee44cf2f8451768086 |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L116 |
| Doc/whatsnew/3.16.rst | https://github.com/python/cpython/pull/134627/files#diff-e69e0be717f3409832d520e20348f62af39c9436ba1a9d82e842bc10e5eb51d7 |
|
View file
| https://github.com/danny0838/cpython/blob/b70a80be67eae6ce89ee0154fe83e8550aab5d0a/Doc/whatsnew/3.16.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/134627/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/134627/files#diff-e69e0be717f3409832d520e20348f62af39c9436ba1a9d82e842bc10e5eb51d7 |
|
| https://github.com/python/cpython/pull/134627/files#diff-e69e0be717f3409832d520e20348f62af39c9436ba1a9d82e842bc10e5eb51d7 |
| Please reload this page | https://github.com/python/cpython/pull/134627/files |
| Please reload this page | https://github.com/python/cpython/pull/134627/files |
|
| 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 |