[Numpy-tickets] [NumPy] #518: a.var(), a.std(), and a.mean() return incorrect type when no axis specified

NumPy numpy-tickets@scipy....
Thu May 17 01:34:45 CDT 2007


#518: a.var(), a.std(), and a.mean() return incorrect type when no axis specified
--------------------------------------+-------------------------------------
 Reporter:  charris                   |        Owner:  somebody     
     Type:  defect                    |       Status:  closed       
 Priority:  normal                    |    Milestone:  1.0.3 Release
Component:  numpy.core                |      Version:  none         
 Severity:  normal                    |   Resolution:  wontfix      
 Keywords:  return type var std mean  |  
--------------------------------------+-------------------------------------
Changes (by oliphant):

  * status:  reopened => closed
  * resolution:  => wontfix

Comment:

 Yes, I know.  It is better to say that they return different types when
 you use axis=None or axis=0 (the default is axis=None).  This is
 reasonable as the result in the case of axis=None is a scalar and scalar's
 do not control type decisions.

 It is consistent when you realize what is happening.  Changing it would be
 "inconsistent" and a special case.

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


More information about the Numpy-tickets mailing list