]> granicus.if.org Git - python/commitdiff
Issue #10225: Fixed the simple mistakes in doctests.
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>
Wed, 12 Jan 2011 16:37:14 +0000 (16:37 +0000)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Wed, 12 Jan 2011 16:37:14 +0000 (16:37 +0000)
Doc/library/decimal.rst
Doc/library/operator.rst
Doc/library/turtle.rst

index bf153ba30f5b18f438abdc98c65ad676af3b016a..9d5b32ffacb796dae9623c29c37e7695b5c41214 100644 (file)
@@ -144,7 +144,7 @@ value of that integer or float.  Decimal numbers include special values such as
    >>> Decimal((0, (3, 1, 4), -2))
    Decimal('3.14')
    >>> Decimal(str(2.0 ** 0.5))
-   Decimal('1.41421356237')
+   Decimal('1.4142135623730951')
    >>> Decimal(2) ** Decimal('0.5')
    Decimal('1.414213562373095048801688724')
    >>> Decimal('NaN')
index 3c36f2bca95e899abb7100fca13c7ac9c2c273d9..1dc0e144d282b1f00681308065859fcb5dfd4ee6 100644 (file)
@@ -9,7 +9,7 @@
 .. testsetup::
 
    import operator
-   from operator import itemgetter
+   from operator import itemgetter, iadd
 
 
 The :mod:`operator` module exports a set of functions implemented in C
index 4f2fbcc942dd7dac051c252d1a1b8fd8c1ba1eb7..692746fad1d99f583c16deb5e1cd62763cc853d8 100644 (file)
@@ -1878,7 +1878,7 @@ Settings and special methods
 
       >>> cv = screen.getcanvas()
       >>> cv
-      <turtle.ScrolledCanvas instance at 0x...>
+      <turtle.ScrolledCanvas object at ...>
 
 
 .. function:: getshapes()