Skip to content

[3.15] gh-156078: Prevent ZipFile.mkdir() during an active write (GH-156079) - #160477

Merged
JelleZijlstra merged 1 commit into
python:3.15from
miss-islington:backport-dc78afe-3.15
Oct 23, 2026
Merged

JelleZijlstra merged 1 commit into
python:3.15from
miss-islington:backport-dc78afe-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Fix ZipFile.mkdir() so that it raises ValueError when another writable
member handle returned by ZipFile.open(..., mode="w") is still open.
(cherry picked from commit dc78afe)

Co-authored-by: Pengyu Lee lipengyu@kylinos.cn
Co-authored-by: Stan Ulbrych stan@python.org

…onGH-156079)

Fix `ZipFile.mkdir()` so that it raises `ValueError` when another writable
member handle returned by `ZipFile.open(..., mode="w")` is still open.
(cherry picked from commit dc78afe)

Co-authored-by: Pengyu Lee <lipengyu@kylinos.cn>
Co-authored-by: Stan Ulbrych <stan@python.org>
@JelleZijlstra
JelleZijlstra enabled auto-merge (squash) October 23, 2026 19:56
@JelleZijlstra
JelleZijlstra merged commit 2076384 into python:3.15 Oct 23, 2026
59 checks passed
@miss-islington
miss-islington deleted the backport-dc78afe-3.15 branch October 23, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants