New issue 1772: Complex dtype unhashable.
https://bitbucket.org/pypy/pypy/issue/1772/complex-dtype-unhashable

Yichao Yu:

In pypy,
```
pypy -c 'import numpy as np; t = np.dtype([("s1", np.int8), ("s2", np.int8)]); 
print(hash(t))'             
Traceback (most recent call last):
  File "app_main.py", line 75, in run_toplevel
  File "app_main.py", line 581, in run_it
  File "<string>", line 1, in <module>
TypeError: 'dict' objects are unhashable
```

In CPython
```
python2 -c 'import numpy as np; t = np.dtype([("s1", np.int8), ("s2", 
np.int8)]); print(hash(t))'
-5634517127405799957
```



_______________________________________________
pypy-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to