[Python-checkins] python/nondist/sandbox/decimal Decimal.py, 1.38, 1.39

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Thu Jul 1 06:35:47 EDT 2004


Update of /cvsroot/python/python/nondist/sandbox/decimal
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23601

Modified Files:
	Decimal.py 
Log Message:
Remove unused private method.

Index: Decimal.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/Decimal.py,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** Decimal.py	1 Jul 2004 10:30:33 -0000	1.38
--- Decimal.py	1 Jul 2004 10:35:45 -0000	1.39
***************
*** 20,25 ****
  #       rename Decimal.py and test_Decimal.py to lowercase decimal
  #       retarget the test directory to decimaltestdata
- #    Fix doctest for _fixedpoint which fails only when run from this file
- #       but works fine in the doctest in test_decimal.
  #    Checkout the doctest for Decimal("123.45e12345678901234567890")
  #       which works in Py2.3 and Py2.4 but returns a NaN in Py2.2.
--- 20,23 ----
***************
*** 1706,1722 ****
              return self._round_up(prec, expdiff, context)
  
-     def _fixedPoint(self, digits, rounding = None, context=None):
- ##        """Rounds to a number of digits around the decimal point.
- ##
- ##        Convenience function to allow rounding to a specified number of
- ##        places after the decimal point.  Negative numbers indicate
- ##        rounding before the decimal point.
- ##
- ##        >>> str(Decimal("1234.34567")._fixedPoint(2))
- ##        '1234.35'
-         numdigits = len(self._int)+self._exp
-         ans = self._round(numdigits+digits, rounding, context=context)
-         return ans
- 
      def __pow__(self, n, modulo = None, context=None):
          """Return self ** n (mod modulo)
--- 1704,1707 ----




More information about the Python-checkins mailing list