[Python-checkins] python/nondist/sandbox/decimal Decimal.py, 1.20, 1.21

facundobatista at users.sourceforge.net facundobatista at users.sourceforge.net
Mon Jun 21 17:50:53 EDT 2004


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

Modified Files:
	Decimal.py 
Log Message:
Lots of name changes. New methods. Several fixes. Complies with updated Cowlishaw test cases.

Index: Decimal.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/decimal/Decimal.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** Decimal.py	20 Jun 2004 01:54:59 -0000	1.20
--- Decimal.py	21 Jun 2004 21:50:51 -0000	1.21
***************
*** 22,40 ****
  >>> from Decimal import *
  >>> Decimal(0)
! Decimal( (0, (0,), 0L) )
  >>> Decimal("1")
! Decimal( (0, (1,), 0L) )
  >>> Decimal("-.0123")
! Decimal( (1, (1, 2, 3), -4L) )
! >>> Decimal("1.20")
! Decimal( (0, (1, 2, 0), -2L) )
! >>> str(Decimal(123456789012345678901234567890L))
[...1812 lines suppressed...]
  #Used in SetDefaultContext
--- 2499,2503 ----
                           DEFAULT_FLAGS.copy(), DEFAULT_ROUNDING_DECISION,
                           DEFAULT_MIN_EXPONENT, DEFAULT_MAX_EXPONENT,
!                          CAPITALS, CLAMP, IGNORED_FLAGS)
  
  #Used in SetDefaultContext
***************
*** 2574,2578 ****
                         'DEFAULT_FLAGS' : 'flags',
                         'DEFAULT_ROUNDING' : 'rounding',
!                        'DEFAULT_ROUNDING_DECISION' : 'rounding_decision',
                         'DEFAULT_MIN_EXPONENT' : 'Emin',
                         'DEFAULT_MAX_EXPONENT' : 'Emax'}
--- 2506,2510 ----
                         'DEFAULT_FLAGS' : 'flags',
                         'DEFAULT_ROUNDING' : 'rounding',
!                        'DEFAULT_ROUNDING_DECISION' : '_rounding_decision',
                         'DEFAULT_MIN_EXPONENT' : 'Emin',
                         'DEFAULT_MAX_EXPONENT' : 'Emax'}




More information about the Python-checkins mailing list