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

gh-132983: Add documentation for compression.zstd by emmatyping · Pull Request #133911 · python/cpython · GitHub

/ cpython Public

gh-132983: Add documentation for compression.zstd - #133911

Merged
gpshead merged 23 commits into
python:mainfrom
emmatyping:zstd-docs
May 21, 2025
Merged

gh-132983: Add documentation for compression.zstd#133911
gpshead merged 23 commits into
python:mainfrom
emmatyping:zstd-docs

Conversation

emmatyping commented May 12, 2025
edited by hugovk
Loading

Copy link
Copy Markdown
Member

emmatyping added the needs backport to 3.14 bugs and security fixes label May 12, 2025

AA-Turner 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

syntactic review

Comment thread Doc/library/archiving.rst Outdated
Comment thread Doc/library/compression.rst Outdated
Comment thread Doc/library/compression.rst Outdated
Comment thread Doc/library/compression.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>

StanFromIreland 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

Some grammar notes.

Code block directives need a line after.

Please settle on gaps between descriptions for the file, currently it seems random, some parts use two and others one.

Comment thread Doc/library/compression.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>

Copy link
Copy Markdown
Member

cc @python/proofreaders, I think the text here could benefit from a close reading, Stan has already noted several English grammar/syntax points.

Copy link
Copy Markdown
Member

@python/proofreaders

Are there any active members, out of curiosity? I do not know of any nor have seen any around.

I think the text here could benefit from a close reading

I will go through it again later.

Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated

bskinn commented May 12, 2025

Copy link
Copy Markdown
Contributor

@python/proofreaders

Are there any active members, out of curiosity? I do not know of any nor have seen any around.

🙋

I at least look at all pings to the group. Will usually weigh in if I have time, and as long as no one else has beaten me to what I'd have to say.

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>

Copy link
Copy Markdown
Member Author

@StanFromIreland

Please settle on gaps between descriptions for the file, currently it seems random, some parts use two and others one.

I use one for items within a class, two for at the module level, but that's probably too complicated and I should probably just choose two lines.

Comment thread Doc/library/compression.zstd.rst Outdated

Copy link
Copy Markdown

@python/proofreaders

Are there any active members, out of curiosity? I do not know of any nor have seen any around.

There are, but we don't get explicitly called on very often, it seems...

Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.rst Outdated
Comment thread Doc/library/compression.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
emmatyping and others added 3 commits May 13, 2025 18:40
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
- Rewrite the digested/undigested dict section
- Add a section for exceptions
- wrap lines to ~80 chars
- clarify that an exception is raised if level is passed to a decompressor
- make quotes in docs for open vs ZstdFile consistent
- Remove currently and repeated "note"

StanFromIreland 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

Looking pretty good now.

Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated

brainwane left a comment

Copy link
Copy Markdown
Contributor

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

I wasn't absolutely thorough in reviewing all the proposed text, but have a few suggestions for clarification. Thanks for the work.

Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Sumana Harihareswara <sh@changeset.nyc>
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
emmatyping and others added 5 commits May 20, 2025 12:01
Co-authored-by: Martin Panter <vadmium@users.noreply.github.com>
- improve argument descriptions
- improve clarity about the meaning of parameter value 0s
- clarify behavior of compress/flush
- many more clarifications/wording improvements

serhiy-storchaka 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

Besides some nitpicks, LGTM.

Comment thread Doc/library/compression.zstd.rst Outdated
decompression, passing a digested dictionary will reduce the overhead of
loading the dictionary.

.. list-table:: Difference for compression

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

I think that simple nested item lists would look better here. Maybe not even nested item lists, just an item lists with two or three paragraphs in every item.

emmatyping May 21, 2025
edited
Loading

Copy link
Copy Markdown
Member Author

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

Sorry, I'm not sure I understand what you have in mind, perhaps it can be resolved in a follow-up?

Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
Comment thread Doc/library/compression.zstd.rst Outdated
- Use "integer" instead of "int object"
- Use > 0 rather than >=1 for nb_workers
gpshead moved this from Todo to Done in Docs PRs May 21, 2025
gpshead merged commit d862b6d into python:main May 21, 2025

Copy link
Copy Markdown

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

bedevere-app Bot commented May 21, 2025

Copy link
Copy Markdown

GH-134425 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 May 21, 2025
emmatyping deleted the zstd-docs branch May 21, 2025 14:52
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

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

10 participants


Back | FazBrowse Home | New Git URL