[issue1182] Paticular decimal mod operation wrongly output NaN.

2008-01-08 Thread Mark Dickinson
Mark Dickinson added the comment: I don't think anything's missing from Cowlishaw's test-suite. An old, buggy test (nrmx218) was both renamed (to redx218) and fixed by Cowlishaw. I think Facundo ended up with both tests---so naturally the old, broken test failed. ___

[issue1182] Paticular decimal mod operation wrongly output NaN.

2008-01-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: If this something missing from Colishaw's test suite, you should submit the result to him so they can include it in the next update. -- nosy: +rhettinger __ Tracker <[EMAIL PROTECTED]>

[issue1182] Paticular decimal mod operation wrongly output NaN.

2008-01-08 Thread Mark Dickinson
Mark Dickinson added the comment: hash fixed in revision 59863. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue1182] Paticular decimal mod operation wrongly output NaN.

2008-01-08 Thread Facundo Batista
Facundo Batista added the comment: Fix it, please. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue1182] Paticular decimal mod operation wrongly output NaN.

2008-01-08 Thread Mark Dickinson
Mark Dickinson added the comment: 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", "copyrig

[issue1182] Paticular decimal mod operation wrongly output NaN.

2008-01-08 Thread Facundo Batista
Changes by Facundo Batista: -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue1182] Paticular decimal mod operation wrongly output NaN.

2008-01-08 Thread Facundo Batista
Facundo Batista added the comment: Decimal was backported to Py2.5, commited in r59859. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing li

[issue1182] Paticular decimal mod operation wrongly output NaN.

2008-01-07 Thread Mark Dickinson
Mark Dickinson added the comment: P.S. I've just noticed that both versions of __hash__ are buggy: the hash value of a Decimal depends on the current context. I'll open a new bug report. __ Tracker <[EMAIL PROTECTED]> _

[issue1182] Paticular decimal mod operation wrongly output NaN.

2008-01-07 Thread Mark Dickinson
Mark Dickinson added the comment: You need to remove the old files in decimaltestdata before copying the new ones across: nrmx218 is an old, and buggy, testcase; at some point Mike Cowlishaw renamed normalize.decTest to reduce.decTest. He also renamed the operation from normalize to reduce, bu

[issue1182] Paticular decimal mod operation wrongly output NaN.

2008-01-07 Thread Facundo Batista
Facundo Batista added the comment: Mmm... I thought this would be a clean backport... but no. If we just copy the files to 2.5, we get two failures running the tests. - test_hash_method (DecimalUsabilityTest): This is because of the changes we made to the hash builtin in the trunk, and we shoul

[issue1182] Paticular decimal mod operation wrongly output NaN.

2007-09-24 Thread Mark Dickinson
Mark Dickinson added the comment: I should have said that the bug I mentioned above is just one of a number of bugs (mostly in division, addition and square root) that have been corrected in the trunk. Some of these fixes

[issue1182] Paticular decimal mod operation wrongly output NaN.

2007-09-24 Thread Mark Dickinson
Mark Dickinson added the comment: There's a bug on line 1341 of decimal.py. That line currently reads: otherside = otherside._rescale(exp, context=context) It should read: otherside = otherside._rescale(exp, context=con

[issue1182] Paticular decimal mod operation wrongly output NaN.

2007-09-23 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I tracked down, and I noticed following code was invoked. Lib/decimal.py (release-maint25 Decimal#_rescale) 1912: if watchexp and digits > context.prec: 1913: return context._raise

[issue1182] Paticular decimal mod operation wrongly output NaN.

2007-09-20 Thread Georg Brandl
Changes by Georg Brandl: -- assignee: -> facundobatista nosy: +facundobatista __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing li

[issue1182] Paticular decimal mod operation wrongly output NaN.

2007-09-20 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : Following code illegally print "NaN" on Python2.5. from decimal import * d1 = Decimal("23.08589694291355371979265447") d2 = Decimal("2.302585092994045640179914546844") print d1 % d2