[NumPy-Tickets] [NumPy] #1779: array.tolist() speed enhancement

NumPy Trac numpy-tickets@scipy....
Wed Mar 23 08:52:17 CDT 2011


#1779: array.tolist() speed enhancement
-------------------------+--------------------------------------------------
 Reporter:  Han          |       Owner:  somebody    
     Type:  enhancement  |      Status:  needs_review
 Priority:  normal       |   Milestone:  1.6.0       
Component:  Other        |     Version:  devel       
 Keywords:  tolist       |  
-------------------------+--------------------------------------------------

Comment(by Han):

 Hmmm.. already spotted an issue where this is converted correctly:


 {{{
 >>> a = array([[1,2,3,object()],array([5,6,7,8])])
 >>> a.tolist()
 [[1, 2, 3, <object object at 0x00A515A0>], [5, 6, 7, 8]]
 }}}

 But this isn't:


 {{{
 >>> a = array([[1,2,3,object()],array([[5,6,7,8]])])
 >>> a.tolist()
 [[1, 2, 3, <object object at 0x00A51598>], array([[5, 6, 7, 8]])]
 }}}

 So the patch doesn't cover all bases..

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


More information about the NumPy-Tickets mailing list