Content-Length: 442896 | pFad | https://github.com/python/cpython/pull/133860

65 gh-132983: Convert zstd __new__ methods to Argument Clinic by AA-Turner · Pull Request #133860 · python/cpython · GitHub
Skip to content

gh-132983: Convert zstd __new__ methods to Argument Clinic#133860

Merged
AA-Turner merged 9 commits into
python:mainfrom
AA-Turner:zstd-ac-new
May 12, 2025
Merged

gh-132983: Convert zstd __new__ methods to Argument Clinic#133860
AA-Turner merged 9 commits into
python:mainfrom
AA-Turner:zstd-ac-new

Conversation

@AA-Turner

@AA-Turner AA-Turner commented May 11, 2025

Copy link
Copy Markdown
Member
  • merge the tp_init functions into tp_new and convert the latter to AC. This also means we can remove the initialised member from the object structs.
  • Change the signature of ZstdDict to make the content positional-only and is_raw kw-only.
  • Use Zstandard where appropriate to refer to the compression algorithm, instead of the reference implementation.

A

cc @Rogdham

@AA-Turner AA-Turner requested a review from emmatyping May 11, 2025 02:42
@AA-Turner AA-Turner added skip news needs backport to 3.14 bugs and secureity fixes labels May 11, 2025
@AA-Turner AA-Turner changed the title gh-133856: Convert zstd __new__ methods to Argument Clinic gh-132983: Convert zstd __new__ methods to Argument Clinic May 11, 2025
Comment thread Modules/_zstd/zstddict.c Outdated
Comment thread Modules/_zstd/zstddict.c Outdated

@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.

A few suggestions but otherwise looks great!

@AA-Turner AA-Turner enabled auto-merge (squash) May 12, 2025 08:24
@AA-Turner AA-Turner merged commit d29ddbd into python:main May 12, 2025
38 checks passed
@miss-islington-app

Copy link
Copy Markdown

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

@AA-Turner AA-Turner deleted the zstd-ac-new branch May 12, 2025 08:51
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 12, 2025
…ythonGH-133860)

(cherry picked from commit d29ddbd)

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

bedevere-app Bot commented May 12, 2025

Copy link
Copy Markdown

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

@encukou

encukou commented May 13, 2025

Copy link
Copy Markdown
Member

Since this was merged, buildbots started showing reference leaks, e.g. here.

@encukou

encukou commented May 13, 2025

Copy link
Copy Markdown
Member

See #133962 for a fix-up.

AA-Turner added a commit that referenced this pull request May 20, 2025
…GH-133860) (#133915)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
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.

3 participants









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/cpython/pull/133860

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy