[Numpy-discussion] Integers to integer powers, let's make a decision

Marten van Kerkwijk m.h.vankerkwijk at gmail.com
Fri Jun 10 20:44:33 EDT 2016


I do think one of the main arguments for returning float remains the
analogy with division. I don't know about the rest of you, but it has been
such a relief not to have to tell students any more "you should add a ".",
otherwise it does integer division". For most purposes, it simply shouldn't
matter whether one types an integer or a float; if it does, then one has to
think about it, and it seems fine for that relatively specialized case to
have to use a specialized function.  -- Marten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160610/1d05db5e/attachment.html>


More information about the NumPy-Discussion mailing list