[NumPy-Tickets] [NumPy] #1582: numpy bug in AIX - problem with empty arrays

NumPy Trac numpy-tickets@scipy....
Fri Aug 13 12:53:59 CDT 2010

#1582: numpy bug in AIX - problem with empty arrays
 Reporter:  davide      |       Owner:  somebody   
     Type:  defect      |      Status:  new        
 Priority:  normal      |   Milestone:  Unscheduled
Component:  numpy.core  |     Version:             
 Keywords:              |  
 This error is correctly detected by a test case, and it boils down to the

 >>> import cPickle, numpy
 >>> cPickle.loads(cPickle.dumps(numpy.array([], dtype=object)))
 Traceback (most recent call last):
  File "<stdin>", line 1, in <module>

 The error is due to the different behavior malloc(0) has on AIX compared
 to linux (see here for an example of what I mean:
 using-malloc-on-aix/ )
 I am attaching two patches, that both fix this issue in a different way,
 but I don't know much about numpy internals, so you might develop a third,
 better one.

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

More information about the NumPy-Tickets mailing list