Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch ml_dtypes to use the Python limited API #195

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hawkinsp
Copy link
Collaborator

No description provided.

@hawkinsp hawkinsp changed the title Limitedapi Switch ml_dtypes to use the Python limited API Sep 13, 2024
@jakevdp
Copy link
Collaborator

jakevdp commented Sep 13, 2024

Looks great! I'm going to try to get 0.5.1 released (I think #197 should do it) and then we can merge this.

Will this let us cut down on the number of wheels we need to build?

This allows us to build a single wheel using Python 3.9 and deploy it on
all platforms, with the exception of 3.13t.

The main downside of this change is it made the hash function for
scalars slightly more expensive.
@hawkinsp
Copy link
Collaborator Author

I might hold off on merging this one, since I'm not 100% sure I can make it compatible with the NumPy 2 dtypes API.

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