Matthew Brett <matthew.br...@gmail.com> wrote:

>>>  Furthermore, adding int64
>>> and uint64 returns float64.
>> 
>> This is a grievous kluge, on the grounds that no-one is really sure
>> *what* to do in this case.
> 
> It doesn't seem unreasonable to me : casting int64 to uint64 or uint64
> to int64 could lead to disastrous truncation.  float64 can exactly
> represent integers +/- 2**53 and will have some defined relative error
> above that.

We could promote to Python int on Python 3 and long on Python 2. 

Sturla

_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to