Skip to content

Fix ZstdDecompressor exception documentation - #154864

Merged
emmatyping merged 1 commit into
python:mainfrom
cuishuang:fix_doc
Aug 14, 2026
Merged

Fix ZstdDecompressor exception documentation#154864
emmatyping merged 1 commit into
python:mainfrom
cuishuang:fix_doc

Conversation

@cuishuang

@cuishuang cuishuang commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

The documentation for compression.zstd.ZstdDecompressor.decompress() stated that calling the method after reaching the end of a frame raises ZstdError.

The implementation raises EOFError, which is also the behavior expected by the tests. Update the documentation to match the actual behavior.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33814341 | 📁 Comparing 8a3a307 against main (9ccd5bb)

  🔍 Preview build  

1 file changed
± library/compression.zstd.html

@cuishuang

Copy link
Copy Markdown
Contributor Author

@emmatyping @gpshead @hugovk Hi, Could you please review this PR at your convenience? Thank you very much.

@emmatyping emmatyping added needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Aug 14, 2026

@emmatyping emmatyping left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, good catch!

@emmatyping
emmatyping merged commit 1bb7995 into python:main Aug 14, 2026
45 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Aug 14, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @cuishuang for the PR, and @emmatyping for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14, 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Aug 14, 2026

Copy link
Copy Markdown

GH-155763 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Aug 14, 2026
@bedevere-app

bedevere-app Bot commented Aug 14, 2026

Copy link
Copy Markdown

GH-155764 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Aug 14, 2026
emmatyping pushed a commit that referenced this pull request Aug 14, 2026
…) (#155764)

Correct decompression exception in zstd documentation (GH-154864)
(cherry picked from commit 1bb7995)

Co-authored-by: cui fliter <imcusg@gmail.com>
hugovk pushed a commit that referenced this pull request Aug 14, 2026
…) (#155763)

Correct decompression exception in zstd documentation (GH-154864)
(cherry picked from commit 1bb7995)

Co-authored-by: cui fliter <imcusg@gmail.com>
mbeijen pushed a commit to mbeijen/cpython that referenced this pull request Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants