Skip to content

Conversation

@Tpt
Copy link
Contributor

@Tpt Tpt commented Dec 15, 2025

Adds a #[deleter] macro attribute

When deleter is set, the PyGetSetDef.setter function calls the setter or deleter depending on if the value is NULL or not

Issue #5686

@Tpt Tpt force-pushed the tpt/deleter branch 2 times, most recently from d4c1ebd to d5121cb Compare December 15, 2025 16:02
Adds a #[deleter] macro

When deleter is set, the `PyGetSetDef.setter` function calls the setter or deleter depending on if the value is `NULL` or not

Issue PyO3#5686
@Tpt Tpt marked this pull request as ready for review December 15, 2025 17:13
Copy link
Member

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

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

Thanks very much for this, looks great!

Co-authored-by: David Hewitt <mail@davidhewitt.dev>
@Tpt Tpt enabled auto-merge December 19, 2025 16:29
@Tpt Tpt added this pull request to the merge queue Dec 19, 2025
Merged via the queue into PyO3:main with commit d904450 Dec 19, 2025
42 of 43 checks passed
@Tpt Tpt deleted the tpt/deleter branch December 19, 2025 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants