summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-06-28 21:00:42 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-06-28 21:00:42 (GMT)
commitd1cc39d3d833289e924c8ded75f6cc94dc4cc5a5 (patch)
treeb72027a1669d3bf7c166535e42dafae1107a7921 /Doc/library
parentcf2d9ff3c5f84eb0481165167b1c523d568ecf7b (diff)
downloadcpython-d1cc39d3d833289e924c8ded75f6cc94dc4cc5a5.zip
cpython-d1cc39d3d833289e924c8ded75f6cc94dc4cc5a5.tar.gz
cpython-d1cc39d3d833289e924c8ded75f6cc94dc4cc5a5.tar.bz2
Merged revisions 73636 via svnmerge from
svn+ssh://pythondev@www.python.org/python/branches/py3k ........ r73636 | mark.dickinson | 2009-06-28 21:59:42 +0100 (Sun, 28 Jun 2009) | 2 lines Issue #6354: More fixes for code examples involving the repr of a float. ........
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/math.rst2
-rw-r--r--Doc/library/sqlite3.rst4
-rw-r--r--Doc/library/turtle.rst2
3 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/math.rst b/Doc/library/math.rst
index 649487f..488230a 100644
--- a/Doc/library/math.rst
+++ b/Doc/library/math.rst
@@ -82,7 +82,7 @@ Number-theoretic and representation functions
loss of precision by tracking multiple intermediate partial sums::
>>> sum([.1, .1, .1, .1, .1, .1, .1, .1, .1, .1])
- 0.99999999999999989
+ 0.9999999999999999
>>> fsum([.1, .1, .1, .1, .1, .1, .1, .1, .1, .1])
1.0
diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index 6c3f6e2..53164b8 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -81,7 +81,7 @@ This example uses the iterator form::
>>> for row in c:
... print(row)
...
- (u'2006-01-05', u'BUY', u'RHAT', 100, 35.140000000000001)
+ (u'2006-01-05', u'BUY', u'RHAT', 100, 35.14)
(u'2006-03-28', u'BUY', u'IBM', 1000, 45.0)
(u'2006-04-06', u'SELL', u'IBM', 500, 53.0)
(u'2006-04-05', u'BUY', u'MSOFT', 1000, 72.0)
@@ -591,7 +591,7 @@ Now we plug :class:`Row` in::
>>> type(r)
<type 'sqlite3.Row'>
>>> r
- (u'2006-01-05', u'BUY', u'RHAT', 100.0, 35.140000000000001)
+ (u'2006-01-05', u'BUY', u'RHAT', 100.0, 35.14)
>>> len(r)
5
>>> r[2]
diff --git a/Doc/library/turtle.rst b/Doc/library/turtle.rst
index 9070107..b7f2853 100644
--- a/Doc/library/turtle.rst
+++ b/Doc/library/turtle.rst
@@ -881,7 +881,7 @@ Color control
>>> tup = (0.2, 0.8, 0.55)
>>> turtle.pencolor(tup)
>>> turtle.pencolor()
- (0.20000000000000001, 0.80000000000000004, 0.5490196078431373)
+ (0.2, 0.8, 0.5490196078431373)
>>> colormode(255)
>>> turtle.pencolor()
(51, 204, 140)