[Numpy-discussion] Integers to negative integer powers, time for a decision.

Charles R Harris charlesr.harris at gmail.com
Sat Oct 8 15:36:40 EDT 2016

On Sat, Oct 8, 2016 at 1:31 PM, Krisztián Horváth <raksi.raksi at gmail.com>

> Hello,
> I think it should be consistent with Python3. So, it should give back a
> float.
> Best regards,
> Krisztian
Can't do that and also return integers for positive powers. It isn't
possible to have behavior completely compatible with python for arrays:
can't have mixed type returns, can't have arbitrary precision integers.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20161008/68dfac46/attachment.html>

More information about the NumPy-Discussion mailing list