[Python-checkins] r73653 - python/trunk/Doc/tutorial/stdlib2.rst

mark.dickinson python-checkins at python.org
Sun Jun 28 23:48:16 CEST 2009


Author: mark.dickinson
Date: Sun Jun 28 23:48:15 2009
New Revision: 73653

Log:
More Decimal quote fixing;  backport of r73642

Modified:
   python/trunk/Doc/tutorial/stdlib2.rst

Modified: python/trunk/Doc/tutorial/stdlib2.rst
==============================================================================
--- python/trunk/Doc/tutorial/stdlib2.rst	(original)
+++ python/trunk/Doc/tutorial/stdlib2.rst	Sun Jun 28 23:48:15 2009
@@ -360,7 +360,7 @@
 
    >>> from decimal import *
    >>> Decimal('0.70') * Decimal('1.05')
-   Decimal("0.7350")
+   Decimal('0.7350')
    >>> .70 * 1.05
    0.73499999999999999
 
@@ -373,7 +373,7 @@
 calculations and equality tests that are unsuitable for binary floating point::
 
    >>> Decimal('1.00') % Decimal('.10')
-   Decimal("0.00")
+   Decimal('0.00')
    >>> 1.00 % 0.10
    0.09999999999999995
 
@@ -386,6 +386,6 @@
 
    >>> getcontext().prec = 36
    >>> Decimal(1) / Decimal(7)
-   Decimal("0.142857142857142857142857142857142857")
+   Decimal('0.142857142857142857142857142857142857')
 
 


More information about the Python-checkins mailing list