[Python-ideas] [Python-Dev] Python 3.x and bytes
Fred Drake
fdrake at acm.org
Wed May 18 23:04:13 CEST 2011
On Wed, May 18, 2011 at 5:11 PM, Ethan Furman <ethan at stoneleaf.us> wrote:
> I thought it was the other-way-round -- if they hash equal, they should
> compare equal? Or is this just for immutables?
Two values that compare equal must have equal hashes.
Having equal hashes does not imply equality.
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
"Give me the luxuries of life and I will willingly do without the necessities."
--Frank Lloyd Wright
More information about the Python-ideas
mailing list