<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jun 16, 2013 at 12:56 PM, Warren Weckesser <span dir="ltr"><<a href="mailto:warren.weckesser@gmail.com" target="_blank">warren.weckesser@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>With Python 3.3.2 (64 bit), and numpy master:<br><br><span style="font-family:courier new,monospace">>>> import numpy as np</span><br>
<span style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">>>> np.__version__<br>
'1.8.0.dev-2a5c2c8'<br><br></span>>>> f = np.float64(1.0)<br>>>> i = 2**65<br>>>> f*i<br>Traceback (most recent call last):<br> File "<stdin>", line 1, in <module><br>
TypeError: unsupported operand type(s) for *: 'numpy.float64' and 'int'<br></span><br>Is this the expected behavior?<br><br></div>The error does not occur with integers that fit in 64 bits:<br><br><span style="font-family:courier new,monospace">>>> f*10<br>
10.0</span><br><br></div><div>It also does not occur in numpy 1.7.1.<span class=""><font color="#888888"><br></font></span></div><span class=""><font color="#888888"><div><br></div></font></span></div></blockquote><div><br>
<br></div><div>I should have checked the issues on github before mailing the list: <a href="https://github.com/numpy/numpy/issues/3442">https://github.com/numpy/numpy/issues/3442</a><br><br></div><div>Warren<br><br> <br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><span class=""><font color="#888888"><div></div><div>Warren<br></div><br></font></span></div>
</blockquote></div><br></div></div>