Christopher Barker schrieb:
> Sven Schreiber wrote:
>> on my 1.0b5 I also see this docstring which indeed seems obsolete.
> 
> I get this docs string from :
> 
>  >>> import numpy as N
>  >>> N.__version__
> '1.0b5'
>  >>> a = N.arange(10)
>  >>> help( a.sum)
> 
> """
> sum(...)
>      a.sum(axis=None, dtype=None) -> Sum of array over given axis.
> 
>      Sum the array over the given axis.  If the axis is None, sum over
>      all dimensions of the array.
> 
> """
> 
> that looks right to me.
> 
> -Chris
> 

Well here's what we had in mind:

sum(x, axis=None, dtype=None, out=None)

(...)

       Examples:
    >>> sum([0.5, 1.5])
    2.0
    >>> sum([0.5, 1.5], dtype=Int32)
    1
    >>> sum([[0, 1], [0, 5]])
    array([0, 6])
    >>> sum([[0, 1], [0, 5]], axis=1)
    array([1, 5])


And you can see the third example would now be wrong, giving a scalar of
6 now.
-sven

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to