New submission from Hakan Ardo <[email protected]>: $ pypy -c 'import numpypy as np; print int(np.array([np.nan])[0])' -9223372036854775808
on cpython this raises ValueError: $ python -c 'import numpy as np; print int(np.array([np.nan])[0])' Traceback (most recent call last): File "<string>", line 1, in <module> ValueError: cannot convert float NaN to integer ---------- messages: 6097 nosy: hakanardo, pypy-issue priority: bug status: unread title: NaN valued numpypy.float64 can be converted to int ________________________________________ PyPy bug tracker <[email protected]> <https://bugs.pypy.org/issue1590> ________________________________________ _______________________________________________ pypy-issue mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-issue
