WebSafe 3.7github.com
|
|
🏠
Skip to content

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

Merged
AA-Turner merged 9 commits intopython: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 intopython:mainfrom
AA-Turner:zstd-ac-new

Conversation

@AA-Turner
Copy link
Member

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

  • 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 security 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
Copy link
Member

@emmatyping emmatyping left a comment

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

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
Copy link

bedevere-app bot commented May 12, 2025

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

@encukou
Copy link
Member

encukou commented May 13, 2025

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

@encukou
Copy link
Member

encukou commented May 13, 2025

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

3 participants

Comments