Skip to content

gh-76351: Support custom extractor for ZipFile.extract and ZipFile.extractall#154704

Open
danny0838 wants to merge 16 commits into
python:mainfrom
danny0838:gh-76351
Open

gh-76351: Support custom extractor for ZipFile.extract and ZipFile.extractall#154704
danny0838 wants to merge 16 commits into
python:mainfrom
danny0838:gh-76351

Conversation

@danny0838

@danny0838 danny0838 commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Add extractor parameter to ZipFile.extract() and ZipFile.extractall() to support customizable file attributes restoration.

Also provide the basic extractor classes: ZipExtractorBase, ZipExtractorTime, ZipExtractorTimeModeX, ZipExtractorTimeModeSafe, ZipExtractorTimeMode.

Additionally, update the documentation to correctly state that the default behavior is to restore no file attributes.

@danny0838 danny0838 changed the title gh-76531: Support custom extractor for ZipFile.extract and ZipFile.extractall gh-76351: Support custom extractor for ZipFile.extract and ZipFile.extractall Jul 26, 2026
@read-the-docs-community

read-the-docs-community Bot commented Jul 26, 2026

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33762797 | 📁 Comparing f081de7 against main (b86a41c)

  🔍 Preview build  

3 files changed
± library/archiving.html
± library/zipfile.html
± whatsnew/changelog.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant