[pypy-issue] [issue1590] NaN valued numpypy.float64 can be converted to int
Hakan Ardo
tracker at bugs.pypy.org
Mon Aug 26 10:11:16 CEST 2013
New submission from Hakan Ardo <hakan at debian.org>:
$ 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 <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1590>
________________________________________
More information about the pypy-issue
mailing list