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 11:13 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.