[Numpy-discussion] One-byte string dtype: third time's the charm?
Sturla Molden
sturla.molden at gmail.com
Sun Feb 22 15:50:19 EST 2015
On 22/02/15 20:57, Nathaniel Smith wrote:
> This is a discussion about how strings are represented as bit-patterns
> inside ndarrays; the internal storage representation used by 'str' is
> irrelevant.
I thought it would be clever to just use the same internal
representation as Python would choose. But obviously it is not. UTF-8
would fail because it is not regularly stored. And every string in an
ndarray will need to have the same encoding, but Python might think
otherwise.
Sturla
More information about the NumPy-Discussion
mailing list