8000 BUG: Revert `np.vectorize` casting to legacy behavior by francois-rozet · Pull Request #29196 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: Revert np.vectorize casting to legacy behavior #29196

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

Merged
merged 6 commits into from
Jun 13, 2025

Conversation

francois-rozet
Copy link
Contributor

Fixes #29189

@francois-rozet
Copy link
Contributor Author

cc @seberg

@seberg
Copy link
Member
seberg commented Jun 12, 2025

LGTM, thanks! Could you add a small test for the regression, so if we think about this reasonable looking change in the future, the test will fail?

Copy link
Member
@seberg seberg left a comment

Choose a reason for hiding this comment

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

Thanks @francois-rozet!

@seberg seberg added the 09 - Backport-Candidate PRs tagged should be backported label Jun 13, 2025
@seberg seberg merged commit 8c2dec1 into numpy:main Jun 13, 2025
74 checks passed
charris pushed a commit to charris/numpy that referenced this pull request Jun 13, 2025
Revert use of no `dtype=object` to ensure correct cast behavior when the output dtype is discovered.

Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Jun 13, 2025
charris added a commit that referenced this pull request Jun 13, 2025
Revert use of no `dtype=object` to ensure correct cast behavior when the output dtype is discovered.

Co-authored-by: François Rozet <francois.rozet@outlook.com>
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: The output of np.vectorize for int32 inputs is promoted to int64
3 participants
0