[Numpy-discussion] String to integer array of ASCII values
Peter
numpy-discussion@maubp.freeserve.co...
Thu Jul 23 11:24:56 CDT 2009
On Thu, Jul 23, 2009 at 5:07 PM, Charles R
Harris<charlesr.harris@gmail.com> wrote:
>
> One more:
>
> In [1]: fromstring("ABCDEF", dtype=uint8)
> Out[1]: array([65, 66, 67, 68, 69, 70], dtype=uint8)
>
> Chuck
I should have guessed that one. Why isn't numpy.fromstring listed with the
other entries in the "From existing data" section here?
http://docs.scipy.org/doc/numpy/reference/routines.array-creation.html
This looks like a simple improvement to the documentation...
Peter
More information about the NumPy-Discussion
mailing list