Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #37000 > unrolled thread

Re: Any built-in ishashable method ?

Started byJean-Michel Pichavant <jeanmichel@sequans.com>
First post2013-01-18 15:09 +0100
Last post2013-01-18 15:09 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Re: Any built-in ishashable method ? Jean-Michel Pichavant <jeanmichel@sequans.com> - 2013-01-18 15:09 +0100

#37000 — Re: Any built-in ishashable method ?

FromJean-Michel Pichavant <jeanmichel@sequans.com>
Date2013-01-18 15:09 +0100
SubjectRe: Any built-in ishashable method ?
Message-ID<mailman.631.1358518258.2939.python-list@python.org>
> The flaw would be key1 == key2 and hash(key1) != hash(key2). Then the
> set/dict could store equal items multiple times in different places
> (unless it did a linear search of all members, which would make
> hashing
> pointless!).
> 
> --
> Terry Jan Reedy

My understanding of a hash function was wrong in the first place.
Thank to this thread, I think I got it right now.

Thanks to all who have contributed, (and those who haven't, yes, I'm in a good mood now).

JM


-- IMPORTANT NOTICE: 

The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web