[issue10356] decimal.py: hash of -1

Amaury Forgeot d'Arc report at bugs.python.org
Mon Nov 8 17:03:46 CET 2010


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

It's not about the hash value, but about consistency: help(Decimal.__hash__) says "x.__hash__() <==> hash(x)", but this is not true for x=Decimal(-1).

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10356>
_______________________________________


More information about the Python-bugs-list mailing list