[Numpy-discussion] Re: NEP 55 - Add a UTF-8 Variable-Width String DType to NumPy

2024-02-12 Thread Jim Pivarski
I see: thank you for the explanations! On Mon, Feb 12, 2024 at 3:04 PM Nathan wrote: > Stringdtyoe arrays don’t intern python strings directly, there’s always a > copy. > I had been thinking of accepting a memoryview without copying, but if there's always a copy in any case, that answers my

[Numpy-discussion] Re: NEP 55 - Add a UTF-8 Variable-Width String DType to NumPy

2024-02-12 Thread Nathan
On Mon, Feb 12, 2024 at 1:47 PM Jim Pivarski wrote: > Hi, > > I know that I'm a little late to be asking about this, but I don't see a > comment elsewhere on it (in the NEP, the implementation PR #25347, or this > email thread). > > As I understand it, the new StringDType implementation

[Numpy-discussion] Re: NEP 55 - Add a UTF-8 Variable-Width String DType to NumPy

2024-02-12 Thread Jim Pivarski
Hi, I know that I'm a little late to be asking about this, but I don't see a comment elsewhere on it (in the NEP, the implementation PR #25347, or this email thread). As I understand it, the new StringDType implementation distinguishes 3 types of individual strings, any of which can be present