> Exactly -- but what should those conversion/casting rules be? We can't(remember I'm just a balcony muppet)
> decide that unless we decide if 'S' is for text or for arbitrary bytes -- it
> can't be both. I say text, that's what it's mostly trying to do already. But
> if it's bytes, fine, then some things still need cleaning up, and we could
> really use a one-byte-text type. and if it's text, then we may need a bytes
> dtype.
As far as I understand all codecs have the same ascii part.
So I would
cast on ascii and raise on anything else.
or follow whatever the convention of numpy is:
>>> s = -256
>>> np.array((s,), dtype=np.uint8)[0] == s
False
>>> s = -1
>>> np.array((s,), dtype=np.uint8)[0] == s
False
Josef
>
> Key here is that we don't have the option of not breaking anything, because
> there is a lot already broken.
>
> -Chris
>
>
> --
>
> Christopher Barker, Ph.D.
> Oceanographer
>
> Emergency Response Division
> NOAA/NOS/OR&R (206) 526-6959 voice
> 7600 Sand Point Way NE (206) 526-6329 fax
> Seattle, WA 98115 (206) 526-6317 main reception
>
> Chris.Barker@noaa.gov
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion