spacepaste

  1.  
  2. # running with pypy - SystemError: An exception was set, but function returned a value
  3. # running with cpython - OverflowError: Python int too large to convert to C long
  4. import numpy as np
  5. data=np.array([np.uint64(9223372036854775808)]*5, dtype=object)
  6. res = data.astype('i8', copy=False)
  7. print res
  8.