Skip to content

Conversation

@davidhewitt
Copy link
Member

@davidhewitt davidhewitt commented Oct 22, 2025

Prompted by the question in #5421 (comment) and also my own struggles cleaning up #4951

This moves __new__ to be implemented using our "slot" method machinery. As a follow up sometime I will probably try and apply similar treatment to __call__.

@davidhewitt
Copy link
Member Author

@Icxolu I cut the diff down here, it should be a reviewable size now except there's the failing test-introspection. I'll try to debug that later.

@davidhewitt davidhewitt marked this pull request as ready for review November 13, 2025 16:19
@davidhewitt
Copy link
Member Author

Think this should be good to review and get the rest of the __init__ stuff based on it unblocked! 🎉

Copy link
Contributor

@Icxolu Icxolu left a comment

Choose a reason for hiding this comment

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

Thanks for reworking, I think this looks great now 💯

@Icxolu Icxolu added this pull request to the merge queue Nov 14, 2025
Merged via the queue into PyO3:main with commit d58a449 Nov 14, 2025
42 of 43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI-skip-changelog Skip checking changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants