[NumPy-Tickets] [NumPy] #718: Bug with numpy.float32.tolist

NumPy Trac numpy-tickets@scipy....
Tue Mar 22 22:44:10 CDT 2011


#718: Bug with numpy.float32.tolist
------------------------+---------------------------------------------------
 Reporter:  Elby        |       Owner:  somebody      
     Type:  defect      |      Status:  needs_decision
 Priority:  normal      |   Milestone:  Unscheduled   
Component:  numpy.core  |     Version:  none          
 Keywords:              |  
------------------------+---------------------------------------------------

Comment(by oliphant):

 After the discussion it seems that Option 2) Raise an error or Option 3)
 return a 1-element list are the correct approaches.

 I lean towards raising an error because of consistency with the
 interpretation that 0-d arrays are not containers.

 On the other hand, practicality would indicate to do the "obvious" thing
 and return a 1-element list.

 So, I could go either way.

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


More information about the NumPy-Tickets mailing list