Skip to content

Conversation

davidhewitt
Copy link
Member

This is a rebuild of #5178 which uses a private helper in FromPyObject to perform the specialized conversion.

@bschoenmaeckers
Copy link
Member

Tnx for continuing the work!

@davidhewitt
Copy link
Member Author

@Icxolu are you happy with this given your alternative suggestion in #5507 (comment) ?

@Icxolu
Copy link
Contributor

Icxolu commented Oct 13, 2025

I'm not at my keyboard this week, so i just skimmed through it. I'm fine with the change and I agree that my suggestion is probably a much bigger performance hit than this. I just think than in general we should try to minimize such specializations because it makes it harder to follow how the extraction works and harder to maintain if too many special methods crop up.

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.

3 participants