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 mark.dickinson
Recipients facundobatista, mark.dickinson, ocean-city
Date 2008-01-08.20:17:31
SpamBayes Score 0.022261528
Marked as misclassified No
Message-id <1199823453.38.0.0497226407175.issue1182@psf.upfronthosting.co.za>
In-reply-to
Content
Unfortunately, I think this backport still breaks hash:

bernoulli:~/python_source/release25-maint dickinsm$ ./python.exe
Python 2.5.2a0 (release25-maint:59859M, Jan  8 2008, 11:54:53) 
[GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from decimal import *
>>> x = Decimal("1.634E100")
>>> hash(x) == hash(int(x))
False

Do we really want to go from a slow-but-working Decimal.__hash__ in Python 2.5.1 to a fast-but-
broken hash in Python 2.5.2?

I can fix this (it's a 1-line change), and reinstate the extra hash tests, if you like.  Or I can 
post a patch if you prefer.
History
Date User Action Args
2008-01-08 20:17:33mark.dickinsonsetspambayes_score: 0.0222615 -> 0.022261528
recipients: + mark.dickinson, facundobatista, ocean-city
2008-01-08 20:17:33mark.dickinsonsetspambayes_score: 0.0222615 -> 0.0222615
messageid: <1199823453.38.0.0497226407175.issue1182@psf.upfronthosting.co.za>
2008-01-08 20:17:31mark.dickinsonlinkissue1182 messages
2008-01-08 20:17:31mark.dickinsoncreate