Message169398
The new PEP-3118 equality definition from #15573 that is based
on element-wise comparisons breaks the equality-hash invariant:
>>> from _testbuffer import ndarray
>>> x = ndarray([1,2,3], shape=[3], format='f')
>>> y = ndarray([1,2,3], shape=[3], format='B')
>>> a = memoryview(x)
>>> b = memoryview(y)
>>> a == b
True
>>> hash(a) == hash(b)
False
>>> |
|
Date |
User |
Action |
Args |
2012-08-29 17:07:09 | skrah | set | recipients:
+ skrah, loewis, georg.brandl, mark.dickinson, ncoghlan, pitrou, vstinner, christian.heimes, Arfrever, meador.inge |
2012-08-29 17:07:09 | skrah | set | messageid: <1346260029.19.0.320505643782.issue15814@psf.upfronthosting.co.za> |
2012-08-29 17:07:08 | skrah | link | issue15814 messages |
2012-08-29 17:07:08 | skrah | create | |
|