Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Any built-in ishashable method ?

Reply
Thread Tools

Re: Any built-in ishashable method ?

 
 
Jean-Michel Pichavant
Guest
Posts: n/a
 
      01-18-2013
> 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Any built-in ishashable method ? Steven D'Aprano Python 0 01-18-2013 12:16 PM
Re: Any built-in ishashable method ? Peter Otten Python 0 01-18-2013 12:06 PM
Re: Any built-in ishashable method ? Terry Reedy Python 0 01-18-2013 11:25 AM
Re: Any built-in ishashable method ? Peter Otten Python 0 01-18-2013 11:22 AM
Re: Any built-in ishashable method ? Dave Angel Python 0 01-18-2013 11:05 AM



Advertisments