You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ZstdFile raises AttributeError instead of io.UnsupportedOperation when iterating over a non-readable file #153037
Activity
lkk7 commentedon Jul 4, 2026
I have a patch ready and working, I believe, so I'll push that soon.
lkk7 commentedon Jul 4, 2026
@emmatyping tagging you because I see you're the zstd expert and I'd be very happy to submit a patch if you agree this should be fixed.
emmatyping commentedon Jul 4, 2026
I agree consistency here would be good. Thank you for working on a patch @lkk7!
pythongh-153037: Fix `AttributeError` when iterating over a non-reada…
gh-153037: Make ZstdFile.__next__ raise io.UnsupportedOperation on no…
[3.14] gh-153037: Make ZstdFile.__next__ raise io.UnsupportedOperatio…
[3.15] gh-153037: Make ZstdFile.__next__ raise io.UnsupportedOperatio…