[issue2603] Make range __eq__ work
Amaury Forgeot d'Arc
report at bugs.python.org
Thu Apr 17 09:21:18 CEST 2008
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
> It produces the same hash value for range(5,10,2) and range(5,9,2)
> which are equivalent.
If "equivalent" means "__eq__", they are not.
This does not invalidate your formula, of course: different objects may
have the same hash.
It is also simple to understand: just mix the numbers together.
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2603>
__________________________________
More information about the Python-bugs-list
mailing list