[NumPy-Tickets] [NumPy] #2215: regression (from 1.5.x) with return of operations on memmap'ed arrays

NumPy Trac numpy-tickets@scipy....
Fri Sep 14 07:46:43 CDT 2012


#2215: regression (from 1.5.x) with return of operations on memmap'ed arrays
------------------------+---------------------------------------------------
 Reporter:  yarikoptic  |       Owner:  somebody   
     Type:  defect      |      Status:  new        
 Priority:  normal      |   Milestone:  Unscheduled
Component:  numpy.core  |     Version:  1.6.2      
 Keywords:              |  
------------------------+---------------------------------------------------
 As
 http://projects.scipy.org/numpy/ticket/2179
 stated: "Ideally one should be returning other ndarray objects, e.g. numpy
 scalars in the case of sum(), but this requires a larger rewrite. At least
 numpy version 1.5.1rc1 did this. The only time the _mmap should be kept
 (as I am aware of) is when slicing. "

 This issue remains not fixed thus opening a separate issue for the above.
 Taking into account that np.asscalar() called on scalars
 (e.g. which would be returned by np.sum on ndarrays) crashes, it becomes
 impossible to write code agnostic of ndarray/memmap container types.

 it is also not clear why array-wide operations on mode='c' memmap'ed
 arrays which cannot really get reflected in the file storage, remain
 memmapped and do not result in normal ndarrays, but I guess that would be
 a separate issue...

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


More information about the NumPy-Tickets mailing list