[NumPy-Tickets] [NumPy] #1176: Zero dimensional arrays are converted to scalars by deepcopy. (was: deepcopy turns ndarry into string_)

NumPy Trac numpy-tickets@scipy....
Thu Mar 24 18:22:03 CDT 2011


#1176: Zero dimensional arrays are converted to scalars by deepcopy.
------------------------------+---------------------------------------------
 Reporter:  mauro             |       Owner:  somebody   
     Type:  defect            |      Status:  new        
 Priority:  normal            |   Milestone:  Unscheduled
Component:  numpy.core        |     Version:  devel      
 Keywords:  deepcopy string_  |  
------------------------------+---------------------------------------------

Comment(by charris):

 This also shows up in


 {{{
 In [89]: type (N.array(1, N.float32))
 Out[89]: <type 'numpy.ndarray'>

 In [90]: type deepcopy(N.array(1, N.float32))
 -------> type(deepcopy(N.array(1, N.float32)))
 Out[90]: <type 'numpy.float32'>

 }}}

 Zero dimensional arrays are converted to scalars by deepcopy.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1176#comment:3>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list