Re: [pypy-dev] Hash compatibility between PyPy and CPython

2018-06-01 Thread Armin Rigo
Hi Manuel, On 2 June 2018 at 01:24, Manuel Jacob wrote: > that can be represented exactly by a float. Now the question is: should we > change our int hash to be compatible with CPython? Yes, I think so. We already jump through hoops to make the int hash compatible with CPython. Apparently, we

[pypy-dev] Hash compatibility between PyPy and CPython

2018-06-01 Thread Manuel Jacob
Hi, Do we in general try to stay compatible with the hashes of CPython? I'm currently debugging a failure in lib-python's test_hash on linux32 in the py3.5 branch [1]. The test fails because currently on PyPy3.5, hash(int(-2**31)) == -2147483648 while hash(float(-2**31)) == -2. On CPython 3