[NumPy-Tickets] [NumPy] #2056: String to complex type conversion fails in Python3

NumPy Trac numpy-tickets@scipy....
Thu Feb 16 21:39:00 CST 2012


#2056: String to complex type conversion fails in Python3
------------------------+---------------------------------------------------
 Reporter:  charris     |       Owner:  somebody   
     Type:  defect      |      Status:  new        
 Priority:  normal      |   Milestone:  Unscheduled
Component:  numpy.core  |     Version:  devel      
 Keywords:              |  
------------------------+---------------------------------------------------
 String to complex type conversion fails in Python3


 {{{
 >>> a = np.ones(2, 'S')
 >>> a.astype('D')
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
 TypeError: complex() argument must be a string or a number

 }}}

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/2056>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list