On Sat, Nov 3, 2012 at 3:07 AM, stefan.krah python-check...@python.org wrote:
+# equality-hash invariant
+x = ndarray(list(range(12)), shape=[12], format='B')
+a = memoryview(nd)
+
+y = ndarray(list(range(12)), shape=[12], format='b')
+b =
Nick Coghlan ncogh...@gmail.com wrote:
+if (b == c):
+self.assertEqual(hash(b), hash(c))
These checks could do with a comment explaining why the if statements
are needed (I'm assuming something to do with memory order).
The checks aren't needed; they were supposed to
On Sat, 3 Nov 2012 10:59:23 +0100
Stefan Krah ste...@bytereef.org wrote:
Nick Coghlan ncogh...@gmail.com wrote:
+if (b == c):
+self.assertEqual(hash(b), hash(c))
These checks could do with a comment explaining why the if statements
are needed (I'm assuming