[Numpy-discussion] Is this a bug?

Travis E. Oliphant oliphant at enthought.com
Tue May 27 17:56:27 EDT 2008


Robert Kern wrote:
>
>
> Can we make it so that dtype('c') is preserved instead of displaying
> '|S1'? It does not behave the same as dtype('|S1') although it
> compares equal to it.
>   

We could with some special-casing in the representation for string 
data-types.   Right now, dtype('c') is equivalent to dtype('S1') except 
the type member of the underlying C-structure (char attribute in Python) 
is 'c' instead of 'S'

-Travis




More information about the NumPy-Discussion mailing list