hash(unicode(string)) == hash(string) sometimes (was Re: Why KeyError ???)
Paul Rubin
phr-n2002a at nightsong.com
Thu Mar 7 01:38:46 EST 2002
Tim Peters <tim.one at comcast.net> writes:
> If you're indeed correct that floatish numbers have no use as dict keys,
> this routine is never executed, so a claim of "extra runtime" would swallow
> itself in embarrassment <wink>.
My solution to the "nine 9's" puzzle used floats as hash keys, so that
code got executed at least once :).
More information about the Python-list
mailing list