This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients Arfrever, christian.heimes, georg.brandl, loewis, mark.dickinson, meador.inge, ncoghlan, pitrou, skrah, vstinner
Date 2012-08-29.17:07:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1346260029.19.0.320505643782.issue15814@psf.upfronthosting.co.za>
In-reply-to
Content
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
>>>
History
Date User Action Args
2012-08-29 17:07:09skrahsetrecipients: + skrah, loewis, georg.brandl, mark.dickinson, ncoghlan, pitrou, vstinner, christian.heimes, Arfrever, meador.inge
2012-08-29 17:07:09skrahsetmessageid: <1346260029.19.0.320505643782.issue15814@psf.upfronthosting.co.za>
2012-08-29 17:07:08skrahlinkissue15814 messages
2012-08-29 17:07:08skrahcreate