Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BUG: Fix regression in arr.conj()#31453

Merged
charris merged 1 commit into
numpy:maintenance/2.4.xfrom
seberg:issue-31452
May 17, 2026
Merged

BUG: Fix regression in arr.conj()#31453
charris merged 1 commit into
numpy:maintenance/2.4.xfrom
seberg:issue-31452

Conversation

@seberg
Copy link
Copy Markdown
Member

@seberg seberg commented May 17, 2026

I'll make these helpers static-inline functions on main. Unfortunately, this doesn't just cause wrong promotion for bool->uint8 in arr.conj(), but it also leads to all other non-complex types returning unnecessary copies which seems like a pretty unfortunate regression, even if it might not be very visible in practice.

I am suspecting we may need a 2.4.6 for this :(

(No AI)

I'll make these helpers static-inline functions on main.
Unfortunately, this doesn't just cause wrong promotion for bool->uint8
in `arr.conj()`, but it also leads to all other non-complex types
returning unnecessary copies which seems like a pretty unfortunate
regression, even if it might not be very visible in practice.

I am suspecting we may need a 2.4.6 for this :(
@charris charris merged commit 8d8d7e5 into numpy:maintenance/2.4.x May 17, 2026
73 checks passed
@charris
Copy link
Copy Markdown
Member

charris commented May 17, 2026

Thanks Sebastian, seem simple enough.

@seberg seberg deleted the issue-31452 branch May 17, 2026 14:05
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.

2 participants