[Numpy-discussion] Proposal to make power return float, and other such things.
Robert Kern
robert.kern at gmail.com
Tue Feb 18 07:06:55 EST 2014
On Tue, Feb 18, 2014 at 12:00 PM, 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.
Controllable by np.seterr(invalid=...)? I could get behind that.
--
Robert Kern
More information about the NumPy-Discussion
mailing list