[Numpy-discussion] Integers to integer powers

Alan Isaac alan.isaac at gmail.com
Tue May 24 13:31:44 EDT 2016


On 5/24/2016 1:19 PM, Stephan Hoyer wrote:
> the int ** 2 example feels quite compelling to me


Yes, but that one case is trivial: a*a

And at least as compelling is not have a**-2 fail
and not being tricked by say np.arange(10)**10.
The latter is a promise of hidden errors.

Alan




More information about the NumPy-Discussion mailing list