[Python-checkins] python/nondist/sandbox/decimal Decimal.py, 1.31, 1.32

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Wed Jun 30 04:16:45 EDT 2004


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

Modified Files:
	Decimal.py 
Log Message:
Complete the int/long unification.

Index: Decimal.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/Decimal.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** Decimal.py	30 Jun 2004 08:06:25 -0000	1.31
--- Decimal.py	30 Jun 2004 08:16:42 -0000	1.32
***************
*** 1373,1377 ****
              raise OverflowError, "Cannot convert infinity to long"
          if not self:
!             return 0L
          sign = '-'*self._sign
          if self._exp >= 0:
--- 1373,1377 ----
              raise OverflowError, "Cannot convert infinity to long"
          if not self:
!             return 0
          sign = '-'*self._sign
          if self._exp >= 0:
***************
*** 1382,1386 ****
          tmp = list(self._int)
          tmp.reverse()
!         val = 0L
          while tmp:
              val *= 10
--- 1382,1386 ----
          tmp = list(self._int)
          tmp.reverse()
!         val = 0
          while tmp:
              val *= 10




More information about the Python-checkins mailing list