[Numpy-discussion] Is this a bug?

Travis E. Oliphant oliphant@enthought....
Wed May 28 19:52:15 CDT 2008

Anne Archibald wrote:
> 2008/5/27 Robert Kern <robert.kern@gmail.com>:
>> 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.
> It seems alarming to me that they should compare equal but behave
> differently. Is it possible to change more than just the way it
> prints?
comparison on dtype objects is about memory layout equivalency.  
Characters and length-1 strings are equivalent from a memory-layout 


More information about the Numpy-discussion mailing list