[Scipy-tickets] [SciPy] #656: numpy.sort sometimes doesn't handle strings right

SciPy scipy-tickets@scipy....
Fri Apr 25 02:05:50 CDT 2008


#656: numpy.sort sometimes doesn't handle strings right
--------------------+-------------------------------------------------------
 Reporter:  jloper  |        Owner:  somebody
     Type:  defect  |       Status:  new     
 Priority:  normal  |    Milestone:  0.7     
Component:  Other   |      Version:          
 Severity:  normal  |   Resolution:          
 Keywords:          |  
--------------------+-------------------------------------------------------
Comment (by jloper):

 ilgh.  that formatted not as intended.  sorry.

 - numpy.sort(numpy.array(['\x01\x00\x02','\x01\x00\x04','\x01\x00\x02']))

 array(['\x01\x00\x02', '\x01\x00\x04', '\x01\x00\x02'],dtype='|S3')

 - '\x01\x00\x02'<'\x01\x00\x04'

 True

 - '\x01\x00\x02'>'\x01\x00\x04'

 False

-- 
Ticket URL: <http://scipy.org/scipy/scipy/ticket/656#comment:1>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list