Robert Kern <robert.k...@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.

Sturla

_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to