Skip to content

BUG: Fix unicode strip#26969

Merged
ngoldbaum merged 4 commits intonumpy:mainfrom
inakleinbottle:fix-unicode-strip
Jul 22, 2024
Merged

BUG: Fix unicode strip#26969
ngoldbaum merged 4 commits intonumpy:mainfrom
inakleinbottle:fix-unicode-strip

Conversation

@inakleinbottle
Copy link
Contributor

Fixed a bug in the l/r/strip methods on string arrays with the StringDType dtype. Closes #26915.

I've added more tests covering the behaviour outlined in the issue, and fixed the problem with the
strip methods in C(++).

@seberg seberg requested review from ngoldbaum July 17, 2024 16:08
@ngoldbaum
Copy link
Member

Thanks so much for working on this at the sprint and getting a PR in! I'll try to take a look at this in the next few days but if anyone else gets a chance in the meantime please feel free to give feedback.

@ngoldbaum
Copy link
Member

This looks good to me, thanks so much for working on this and fixing the issue. I just pushed a commit that moves the new tests into test_strings.py, along with the other tests for string functions that apply both to unicode dtype and stringdtype. The tests pass locally for unicode for me, so I'll merge this assuming it passes CI.

@ngoldbaum ngoldbaum merged commit 909aeff into numpy:main Jul 22, 2024
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: Trouble with r/l/strip when stripping a non-ASCII character from a StringDType

2 participants