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

Sturla Molden sturla.molden at gmail.com
Tue Feb 18 07:24:26 EST 2014

Nathaniel Smith <njs at pobox.com> wrote:
> Perhaps integer power should raise an error on negative powers? That way
> people will at least be directed to use arr ** -1.0 instead of silently
> getting nonsense from arr ** -1. 

That sounds far better than silently returning errorneous results.


More information about the NumPy-Discussion mailing list