<p dir="ltr">On 18 Feb 2014 07:07, "Robert Kern" <<a href="mailto:robert.kern@gmail.com">robert.kern@gmail.com</a>> wrote:<br>
><br>
> On Tue, Feb 18, 2014 at 12:00 PM, Nathaniel Smith <<a href="mailto:njs@pobox.com">njs@pobox.com</a>> wrote:<br>
> > Perhaps integer power should raise an error on negative powers? That way<br>
> > people will at least be directed to use arr ** -1.0 instead of silently<br>
> > getting nonsense from arr ** -1.<br>
><br>
> Controllable by np.seterr(invalid=...)? I could get behind that.</p>
<p dir="ltr">I'm not sure the np.seterr part would work or be a good idea, given that we have no way to return or propagate NaN... I vote for just an unconditional error.</p>
<p dir="ltr">-n</p>