Issue #6354: More fixes for code examples involving the repr of a float.

This commit is contained in:
Mark Dickinson 2009-06-28 20:59:42 +00:00
parent 6e6565b64b
commit 5a55b61a2a
6 changed files with 13 additions and 13 deletions

View file

@ -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]