Skip to content

gh-153037: Fix AttributeError when iterating over a non-readable ZstdFile#153045

Open
lkk7 wants to merge 1 commit into
python:mainfrom
lkk7:fix-zstdfile-next-unsupported-operation
Open

gh-153037: Fix AttributeError when iterating over a non-readable ZstdFile#153045
lkk7 wants to merge 1 commit into
python:mainfrom
lkk7:fix-zstdfile-next-unsupported-operation

Conversation

@lkk7

@lkk7 lkk7 commented Jul 4, 2026

Copy link
Copy Markdown

Make ZstdFile.__next__ raise io.UnsupportedOperation on non-readable files.

This makes it consistent with other read methods and compression modules, like LZMAFile, BZ2File.

…ble `ZstdFile`

Make `ZstdFile.__next__` raise `io.UnsupportedOperation` on non-readable
files, consistent with the other read methods and compression modules.
@lkk7 lkk7 requested review from AA-Turner and emmatyping as code owners July 4, 2026 18:45
@python-cla-bot

python-cla-bot Bot commented Jul 4, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

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