[NumPy-Tickets] [NumPy] #1753: empty_like not passing across attributes of memmap objects

NumPy Trac numpy-tickets@scipy....
Tue Mar 15 13:53:18 CDT 2011


#1753: empty_like not passing across attributes of memmap objects
------------------------+---------------------------------------------------
 Reporter:  bryancole   |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:  2.0.0   
Component:  numpy.core  |     Version:  1.5.1   
 Keywords:  memmap      |  
------------------------+---------------------------------------------------

Comment(by mwiebe):

 I just added a 'subok' parameter to empty_like. This allows

 {{{
 >>> b = numpy.empty_like(a, subok=False)
 }}}

 to create a regular array, not a memmap. While this doesn't fix the issue,
 it should help mitigate it in some circumstances.

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


More information about the NumPy-Tickets mailing list