This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:07adminlinkissue1770416 messages
2007-08-23 14:59:07admincreate