Message32610
| Author |
facundobatista |
| Recipients |
| Date |
2007年08月13日.15:10:14 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
hash will NOT be changed as is requested in this bug:
>>> import decimal
>>> d = decimal.Decimal(1)
>>> hash(d)
1
>>> hash(1)
1
>>> hash(d.as_tuple())
-790594979
>>>
See this requirement from PEP 327:
hash(n) == hash(Decimal(n)) # Only if n is int, long, or Decimal
Regarding the overflow, this must to be fixed... I'll take a look to marketdickinson patch...
|
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 14:59:07 | admin | link | issue1770416 messages |
| 2007年08月23日 14:59:07 | admin | create |
|