[NumPy-Tickets] [NumPy] #1581: arr.copy(order={'C', 'F'}) raises TypeError

NumPy Trac numpy-tickets@scipy....
Wed Nov 10 20:18:51 CST 2010


#1581: arr.copy(order={'C','F'}) raises TypeError
------------------------+---------------------------------------------------
 Reporter:  kwmsmith    |       Owner:  somebody    
     Type:  defect      |      Status:  needs_review
 Priority:  normal      |   Milestone:  2.0.0       
Component:  numpy.core  |     Version:              
 Keywords:              |  
------------------------+---------------------------------------------------
Changes (by m-paradox):

  * status:  new => needs_review


Comment:

 The fix for this was committed here:

 https://github.com/numpy/numpy/commit/fd19f049670b8dd609f65e34d0267b6491635d1a

 I confirmed it works:

 {{{
 >>> import numpy as np
 >>> a = np.arange(10).reshape(5,2)
 >>> a.copy(order='C')
 array([[0, 1],
        [2, 3],
        [4, 5],
        [6, 7],
        [8, 9]])
 >>> a.copy(order='F')
 array([[0, 1],
        [2, 3],
        [4, 5],
        [6, 7],
        [8, 9]])
 }}}

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


More information about the NumPy-Tickets mailing list