Index: Lib/decimal.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/decimal.py,v retrieving revision 1.27 diff -w -u -r1.27 decimal.py --- Lib/decimal.py 12 Oct 2004 09:12:16 -0000 1.27 +++ Lib/decimal.py 17 Oct 2004 16:30:16 -0000 @@ -136,7 +136,6 @@ import threading import copy -import operator #Rounding ROUND_DOWN = 'ROUND_DOWN' @@ -1716,7 +1715,6 @@ val = Decimal(1) context = context._shallow_copy() context.prec = firstprec + elength + 1 - rounding = context.rounding if n < 0: #n is a long now, not Decimal instance n = -n @@ -1823,8 +1821,6 @@ if ans: return ans - out = 0 - if watchexp and (context.Emax < exp or context.Etiny() > exp): return context._raise_error(InvalidOperation, 'rescale(a, INF)') @@ -1844,7 +1840,6 @@ tmp._int = (0,) + tmp._int digits += 1 - prevexact = context.flags[Inexact] if digits < 0: tmp._exp = -digits + tmp._exp tmp._int = (0,1) @@ -1940,7 +1935,6 @@ half = Decimal('0.5') - count = 1 maxp = firstprec + 2 rounding = context._set_rounding(ROUND_HALF_EVEN) while 1: @@ -2043,7 +2037,7 @@ if context is None: context = getcontext() - context._rounding_decision == ALWAYS_ROUND + context._rounding_decision = ALWAYS_ROUND return ans._fix(context) def min(self, other, context=None): @@ -2089,7 +2083,7 @@ if context is None: context = getcontext() - context._rounding_decision == ALWAYS_ROUND + context._rounding_decision = ALWAYS_ROUND return ans._fix(context) def _isinteger(self):