Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 287d1fd

Browse files
committed
Issue #10225: Fixed the simple mistakes in doctests.
1 parent 477ba91 commit 287d1fd

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/decimal.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ value of that integer or float. Decimal numbers include special values such as
144144
>>> Decimal((0, (3, 1, 4), -2))
145145
Decimal('3.14')
146146
>>> Decimal(str(2.0 ** 0.5))
147-
Decimal('1.41421356237')
147+
Decimal('1.4142135623730951')
148148
>>> Decimal(2) ** Decimal('0.5')
149149
Decimal('1.414213562373095048801688724')
150150
>>> Decimal('NaN')

Doc/library/operator.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
.. testsetup::
1010

1111
import operator
12-
from operator import itemgetter
12+
from operator import itemgetter, iadd
1313

1414

1515
The :mod:`operator` module exports a set of functions implemented in C

Doc/library/turtle.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1878,7 +1878,7 @@ Settings and special methods
18781878

18791879
>>> cv = screen.getcanvas()
18801880
>>> cv
1881-
<turtle.ScrolledCanvas instance at 0x...>
1881+
<turtle.ScrolledCanvas object at ...>
18821882

18831883

18841884
.. function:: getshapes()

0 commit comments

Comments
 (0)