Home

>>>>> Steven D'Aprano <steve@REMOVE-THIS-cybersource.com.au> (SD) wrote:

>SD> In other words, if you have two mutable objects M1 and M2, then you
>SD> expect:

>SD> hash(M1) == hash(M2) if and only if M1 and M2 are equal
>SD> hash(M1) != hash(M2) if M1 and M2 are unequal

Huh? Unequal things may hash to the same value. That one of the essential
properties of a hash function.
--
Piet van Oostrum <piet@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: piet@vanoostrum.org

previous
next

Eclipse/PyDev question
Re: const in C++
Re: Xerces Compilation Issue
Re: Address of a member function
Re: Frustrating bug in C++ program
Szkoły policealne technik bhp
zaproszenia ślubne
pozycjonowanie rzeszów
YOUCAT
download