[issue2531] float compared to decimal is silently incorrect.

2009-04-24 Thread Jeremy Dunck
Jeremy Dunck added the comment: I'm interested. I just had already said my peace and didn't know my prior interest wasn't being counted. The patch uploaded by dmmartins seemed good to me. I'm probably biased, since

[issue2531] float compared to decimal is silently incorrect.

2009-03-19 Thread Jeremy Dunck
Jeremy Dunck added the comment: I hear you on the 2.x to 3.x transition-- I'm not really asking for mixed-mode arithmetic. I'd be perfectly happy if float > decimal raised TypeError, as float + decimal does. My complaint is that it is s

[issue2531] float compared to decimal is silently incorrect.

2008-04-01 Thread Jeremy Dunck
Changes by Jeremy Dunck <[EMAIL PROTECTED]>: -- type: -> behavior __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2531> __ ___ Python-b

[issue2531] float compared to decimal is silently incorrect.

2008-04-01 Thread Jeremy Dunck
New submission from Jeremy Dunck <[EMAIL PROTECTED]>: Within python 2.5.2: >>> from decimal import Decimal >>> x = 3.0 >>> y = Decimal('0.25') >>> x > y False (expected error, as in 2.4, or True) -- components: Library (Lib) mes