]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-51067: Add `remove()` and `repack()` to `ZipFile` (GH-134627)
authorDanny Lin <danny0838@gmail.com>
Sat, 20 Jun 2026 19:45:53 +0000 (03:45 +0800)
committerGitHub <noreply@github.com>
Sat, 20 Jun 2026 19:45:53 +0000 (12:45 -0700)
commitaec0aed197872adf96d3f25fd5ea624508fcddbf
tree5fdd6ea1d54af31555b5cae50ff07dca6071c7df
parent1fb874cc076e771c39a7bbc650dce386e3c5b7a0
gh-51067: Add `remove()` and `repack()` to `ZipFile` (GH-134627)

The docs included in the commit do the best job of describing this.

Much discussion on the PR and issue.

thank you to to core team folks jaraco, emmatyping, gpshead, and all others who added their constructive comments along the way.

---------

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Doc/library/zipfile.rst
Doc/whatsnew/3.16.rst
Lib/test/test_zipfile/test_core.py
Lib/test/test_zipfile64.py
Lib/zipfile/__init__.py
Misc/NEWS.d/next/Library/2025-05-24-11-17-34.gh-issue-51067.yHOgfy.rst [new file with mode: 0644]