[Numpy-discussion] Proposal to make power return float, and other such things.

Sturla Molden sturla.molden at gmail.com
Tue Feb 18 06:44:22 EST 2014

Robert Kern <robert.kern at gmail.com> wrote:

> We're talking about numpy.power(), not just ndarray.__pow__(). The
> equivalence of the two is indeed an implementation detail, but I do
> think that it is useful to maintain the equivalence. If we didn't, it
> would be the only exception, to my knowledge.

But in this case it makes sence.

math.pow(2,2) and 2**2 does not do the same. That is how Python behaves.


More information about the NumPy-Discussion mailing list