In [20]: hash(np.dtype([('t', float),('y', float)])) == hash(np.dtype([('x', float), ('y', float)])) Out[20]: True But In [3]: ...
15 years, 1 month ago
(2009-03-13 16:03:39 UTC)
#2
In [20]: hash(np.dtype([('t', float),('y', float)])) == hash(np.dtype([('x',
float), ('y', float)]))
Out[20]: True
But
In [3]: a,b = np.dtype([('t', float),('y', float)]), np.dtype([('x', float),
('y', float)])
In [7]: hash(a) == hash(b)
Out[7]: False
I must be doing something silly. Do you know what?
Issue 26052: Hashing protocol for dtypes
(Closed)
Created 15 years, 1 month ago by cournape
Modified 14 years, 9 months ago
Reviewers: stefanv
Base URL: http://svn.python.org/view/*checkout*/python/trunk/
Comments: 0