FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-132983: Fix docstrings in ZstdDict by Rogdham · Pull Request #137321 · python/cpython · GitHub

/ cpython Public

gh-132983: Fix docstrings in ZstdDict - #137321

Merged
AA-Turner merged 5 commits into
python:mainfrom
Rogdham:zstddict_fix_docstrings
Aug 3, 2025
Merged

gh-132983: Fix docstrings in ZstdDict#137321
AA-Turner merged 5 commits into
python:mainfrom
Rogdham:zstddict_fix_docstrings

Conversation

Rogdham commented Aug 2, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

Fixes in docstrings:

  1. Remove extra " at the end of ZstdDict.as_prefix
  2. Fix dictionary,without being all glued together in ZstdDict.dict_id
  3. Add line returns to respect line length in ZstdDict.dict_id

Diff of help(ZstdDict) for illustration:


Rogdham marked this pull request as draft August 2, 2025 09:28
Comment thread Lib/compression/zstd/__init__.py Outdated

Rogdham commented Aug 2, 2025

Copy link
Copy Markdown
Contributor Author

Sorry for the noise on this PR, I was having difficulties with clinic, but it should be ok now.

On an unrelated note, should this be backported to 3.14?

Rogdham marked this pull request as ready for review August 2, 2025 09:55
picnixz added the needs backport to 3.14 bugs and security fixes label Aug 2, 2025

picnixz commented Aug 2, 2025
edited
Loading

Copy link
Copy Markdown
Member

Yeah, 3.14 is still in an RC1 phase and Zstd has been added for 3.14. So updating the docs etc should be part of 3.14. It doesn't make sense to wait for 3.15 to become the stable version before noticing those bugs.

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thank you for spotting these!

Comment thread Modules/_zstd/zstddict.c Outdated
Comment thread Modules/_zstd/zstddict.c Outdated

AA-Turner left a comment
edited
Loading

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

@Rogdham for the future, you can use the "apply suggestion" button (or batched changes via the "files" tab), which can often be quicker, and has the benefit of automatically resolving the review comments.

A

AA-Turner enabled auto-merge (squash) August 3, 2025 14:45
AA-Turner merged commit 676748d into python:main Aug 3, 2025
40 checks passed

Copy link
Copy Markdown

Thanks @Rogdham for the PR, and @AA-Turner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 3, 2025
(cherry picked from commit 676748d)

Co-authored-by: Rogdham <3994389+Rogdham@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>

bedevere-app Bot commented Aug 3, 2025

Copy link
Copy Markdown

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

bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Aug 3, 2025
Rogdham deleted the zstddict_fix_docstrings branch August 3, 2025 15:10
hugovk pushed a commit that referenced this pull request Aug 3, 2025
Co-authored-by: Rogdham <3994389+Rogdham@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
kumaraditya303 pushed a commit to miss-islington/cpython that referenced this pull request Sep 9, 2025
…) (python#137343)

Co-authored-by: Rogdham <3994389+Rogdham@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

7 participants


Back | FazBrowse Home | New Git URL