Message120769
Good catch Stefan. This is a regression from Py2.6. The behavior for decimal should match that for int.
IDLE 2.6.2
>>> hash(-1)
-2
>>> (-1).__hash__()
-2
>>> from decimal import *
>>> hash(Decimal(-1))
-2
>>> Decimal(-1).__hash__()
-2 |
|
Date |
User |
Action |
Args |
2010-11-08 16:39:29 | rhettinger | set | recipients:
+ rhettinger, amaury.forgeotdarc, mark.dickinson, skrah |
2010-11-08 16:39:29 | rhettinger | set | messageid: <1289234369.34.0.936926342502.issue10356@psf.upfronthosting.co.za> |
2010-11-08 16:39:27 | rhettinger | link | issue10356 messages |
2010-11-08 16:39:27 | rhettinger | create | |
|