Issue #1772: Complex dtype unhashable. (pypy/pypy)
16 May
2014
16 May
'14
10:40 a.m.
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 ```
3859
Age (days ago)
3859
Last active (days ago)
0 comments
1 participants
participants (1)
-
Yichao Yu