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

add a promoter for multiplying with a python int #96

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

ngoldbaum
Copy link
Member

This fixes multiplication with a python int by adding a promoter for that case. @seberg do you foresee any issues with promoting all pyints to int64?

There's also some refactoring of the existing ufunc and promoter setup to delete unnecessary code or code that's repeated unnecessarily, let me know if you need any clarifications.

@seberg
Copy link
Member

seberg commented Nov 21, 2023

This fixes multiplication with a python int by adding a promoter for that case. @seberg do you foresee any issues with promoting all pyints to int64?

No, that is totally safe unless you wanted to support gigantic ones (which seems silly).

@ngoldbaum ngoldbaum merged commit 1f2c42e into numpy:main Nov 28, 2023
1 check passed
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