Stefan van der Walt wrote:
>
> Ah, yes, I was confused.  What I meant to ask was, couldn't
> dtype.str[0] sometimes be '|'?
>
>   

That is true.   It would happen for an array of strings. 

 >>> a = n.array(['1','2','3','4'])
 >>> a.dtype.str[0]
'|'

I haven't needed to worry about that case in terms of doing byte swapping.

Chris

_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to