[Numpy-tickets] [NumPy] #551: numpy.ndarray messed up after unpickling

NumPy numpy-tickets@scipy....
Mon Feb 25 12:15:23 CST 2008

#551: numpy.ndarray messed up after unpickling
 Reporter:  cotackst                   |        Owner:  somebody
     Type:  defect                     |       Status:  new     
 Priority:  normal                     |    Milestone:  1.0.5   
Component:  numpy.core                 |      Version:  1.0.1   
 Severity:  normal                     |   Resolution:          
 Keywords:  pickle, ndarray, segfault  |  
Comment (by oliphant):

 The only real difference is that the memory for the array on unpickling is
 allocated originally as a Python String (because that is what unpickling
 does).  NumPy uses that memory directly instead of copying it to another
 memory area.

 Of course, perhaps something is not set correctly in the array in the
 __setitem__ method and this could be checked again (look in arraymethods.c

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

More information about the Numpy-tickets mailing list