Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #37042
| From | Kushal Kumaran <kushal.kumaran+python@gmail.com> |
|---|---|
| Subject | Re: Any built-in ishashable method ? |
| References | <kdbb94$hqa$1@ger.gmane.org> <627444785.6706139.1358510169194.JavaMail.root@sequans.com> <kdbdr4$7fl$1@ger.gmane.org> |
| Date | 2013-01-19 07:06 +0530 |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.659.1358559831.2939.python-list@python.org> (permalink) |
Peter Otten <__peter__@web.de> writes: > Jean-Michel Pichavant wrote: > >> That brings me to another question, is there any valid test case where >> key1 != key2 and hash(key1) == hash(key2) ? Or is it some kind of design >> flaw ? > > I don't think there is a use case for such a behaviour other than annoying > your collegues ;) > It's fairly common. The set of possible keys can be much larger (possibly infinite) than the set of possible hash values (restricted to 32-bit or 64-bit integer values, afaict). -- regards, kushal
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Any built-in ishashable method ? Kushal Kumaran <kushal.kumaran+python@gmail.com> - 2013-01-19 07:06 +0530
csiph-web