Re: Any built-in ishashable method ?
> 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
> 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).
-- 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.
|All times are GMT. The time now is 07:02 AM.|
SEO by vBSEO ©2010, Crawlability, Inc.