[Python-checkins] r87957 - in python/branches/py3k/Doc/library: decimal.rst operator.rst turtle.rst
alexander.belopolsky
python-checkins at python.org
Wed Jan 12 17:37:14 CET 2011
Author: alexander.belopolsky
Date: Wed Jan 12 17:37:14 2011
New Revision: 87957
Log:
Issue #10225: Fixed the simple mistakes in doctests.
Modified:
python/branches/py3k/Doc/library/decimal.rst
python/branches/py3k/Doc/library/operator.rst
python/branches/py3k/Doc/library/turtle.rst
Modified: python/branches/py3k/Doc/library/decimal.rst
==============================================================================
--- python/branches/py3k/Doc/library/decimal.rst (original)
+++ python/branches/py3k/Doc/library/decimal.rst Wed Jan 12 17:37:14 2011
@@ -144,7 +144,7 @@
>>> 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')
Modified: python/branches/py3k/Doc/library/operator.rst
==============================================================================
--- python/branches/py3k/Doc/library/operator.rst (original)
+++ python/branches/py3k/Doc/library/operator.rst Wed Jan 12 17:37:14 2011
@@ -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
Modified: python/branches/py3k/Doc/library/turtle.rst
==============================================================================
--- python/branches/py3k/Doc/library/turtle.rst (original)
+++ python/branches/py3k/Doc/library/turtle.rst Wed Jan 12 17:37:14 2011
@@ -1878,7 +1878,7 @@
>>> cv = screen.getcanvas()
>>> cv
- <turtle.ScrolledCanvas instance at 0x...>
+ <turtle.ScrolledCanvas object at ...>
.. function:: getshapes()
More information about the Python-checkins
mailing list