[Python-checkins] r58140 - python/branches/decimal-branch/Lib/decimal.py

facundo.batista python-checkins at python.org
Thu Sep 13 18:37:32 CEST 2007


Author: facundo.batista
Date: Thu Sep 13 18:37:32 2007
New Revision: 58140

Modified:
   python/branches/decimal-branch/Lib/decimal.py
Log:

Changed the overflow behaviour in the round_05up rounding mode to
match the new tests. Thanks Mark Dickinson.


Modified: python/branches/decimal-branch/Lib/decimal.py
==============================================================================
--- python/branches/decimal-branch/Lib/decimal.py	(original)
+++ python/branches/decimal-branch/Lib/decimal.py	Thu Sep 13 18:37:32 2007
@@ -349,8 +349,7 @@
 
     def handle(self, context, sign, *args):
         if context.rounding in (ROUND_HALF_UP, ROUND_HALF_EVEN,
-                                ROUND_HALF_DOWN, ROUND_UP,
-                                ROUND_05UP):
+                                ROUND_HALF_DOWN, ROUND_UP):
             return Infsign[sign]
         if sign == 0:
             if context.rounding == ROUND_CEILING:


More information about the Python-checkins mailing list