[Numpy-discussion] numpy.asum ?

Robert Kern robert.kern@gmail....
Mon Oct 5 13:43:30 CDT 2009


On Mon, Oct 5, 2009 at 13:37, Sebastian Haase <seb.haase@gmail.com> wrote:
> Thanks for the reply.
> I thought one reason for amax was that
> from numpy import *
> would not not import max but only amax.

I have my timelines confused. Numeric has neither amax() nor max(). I
don't actually recall the sequence of events, then.

> How about sum ?
> Does "from numpy import *"
> overwrite the builtin sum ?

Try it.

> not to mention the "symmetry" / consistency argument for having "asum" ?

At this point, I don't care to cater to "from numpy import *" use
case. Too much code uses numpy.sum() remove it, or even deprecate it.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco


More information about the NumPy-Discussion mailing list