Open
Description
SF's hypothesis tests found a case where dtype_from_element
incorrectly identifies a large int as compatible with int64
. Perhaps this test case can help refine the implementation?
>>> arraykit.dtype_from_element(-9223372036854775809)
dtype('int64')
>>> np.array(-9223372036854775809, dtype=np.int64)
---------------------------------------------------------------------------
OverflowError Traceback (most recent call last)
<ipython-input-7-64f1d1e93b0e> in <module>
----> 1 np.array(-9223372036854775809, dtype=np.int64)
OverflowError: Python int too large to convert to C long
Metadata
Metadata
Assignees
Labels
No labels