mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #6354: More fixes for code examples involving the repr of a float.
This commit is contained in:
parent
6e6565b64b
commit
5a55b61a2a
6 changed files with 13 additions and 13 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue