[Numpy-tickets] [NumPy] #456: Inconsistent behaviour of representation of numpy scalar strings when NULLs exists

NumPy numpy-tickets@scipy....
Wed Feb 28 15:31:06 CST 2007


#456: Inconsistent behaviour of representation of numpy scalar strings when NULLs
exists
------------------------+---------------------------------------------------
 Reporter:  faltet      |        Owner:  somebody
     Type:  defect      |       Status:  closed  
 Priority:  normal      |    Milestone:          
Component:  numpy.core  |      Version:          
 Severity:  normal      |   Resolution:  fixed   
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by stefan):

 Is this the correct behaviour?

 {{{
 In [12]: N.array("a\x00\x0b\x0c\x00") == 'a'
 Out[12]: array(True, dtype=bool)

 In [13]: N.array("ab") == 'a'
 Out[13]: array(False, dtype=bool)
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/456#comment:3>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list