Skip to content

ENH: Allow strings in logical ufuncs#25651

Merged
ngoldbaum merged 2 commits into
numpy:mainfrom
seberg:allow-logical-strings
Jan 22, 2024
Merged

ENH: Allow strings in logical ufuncs#25651
ngoldbaum merged 2 commits into
numpy:mainfrom
seberg:allow-logical-strings

Conversation

@seberg

@seberg seberg commented Jan 22, 2024

Copy link
Copy Markdown
Member

I didn't allow them because casting strings to bools made no sense at all. But that was fixed in gh-23898.

I am very sure the deprecation is expired and I simply forgot to remove that branch also.

Closes gh-1912

I didn't allow them because casting strings to bools made no sense
at all.  But that was fixed in numpygh-23898.

I am very sure the deprecation is expired and I simply forgot to
remove that branch also.

Closes numpygh-1912
@ngoldbaum

Copy link
Copy Markdown
Member

Nice, seems like a clear win.

Maybe add a release note saying that this is supported now?

@ngoldbaum

Copy link
Copy Markdown
Member

Failure is unrelated, merging.

@ngoldbaum ngoldbaum merged commit f84b5a4 into numpy:main Jan 22, 2024
@seberg seberg deleted the allow-logical-strings branch January 22, 2024 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.all() and .any() fail for arrays of type 'S' and 'U' (Trac #1314)

2 participants