[Numpy-discussion] Is this a bug?

Travis E. Oliphant oliphant@enthought....
Tue May 27 16:56:27 CDT 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'


More information about the Numpy-discussion mailing list