[Numpy-tickets] [NumPy] #452: .tolist() for void scalar type is returning a tuple

NumPy numpy-tickets@scipy....
Tue Feb 27 21:24:39 CST 2007


#452: .tolist() for void scalar type is returning a tuple
--------------------+-------------------------------------------------------
 Reporter:  faltet  |        Owner:  somebody
     Type:  defect  |       Status:  closed  
 Priority:  normal  |    Milestone:          
Component:  Other   |      Version:          
 Severity:  normal  |   Resolution:  invalid 
 Keywords:          |  
--------------------+-------------------------------------------------------
Changes (by oliphant):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 This is the correct behavior for 0-d arrays.  A list is not returned,
 rather a Python scalar (in the case of a VOID-type record this is a
 tuple).

-- 
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/452#comment:1>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list