Anne Archibald wrote: > 2008/5/27 Robert Kern <[EMAIL PROTECTED]>: > > >> 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 perspective.
-Travis _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion