Mercurial > cpython-lru_cache-weakref
diff Doc/tutorial/stdlib2.rst @ 50514:c3d3b760d8bf
Remove trailing whitespace.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Sat, 03 Jan 2009 21:18:54 +0000 |
| parents | 5235dcda9076 |
| children | 0e05b6ca6afd |
line wrap: on
line diff
--- a/Doc/tutorial/stdlib2.rst Sat Jan 03 21:17:44 2009 +0000 +++ b/Doc/tutorial/stdlib2.rst Sat Jan 03 21:18:54 2009 +0000 @@ -174,7 +174,7 @@ class AsyncZip(threading.Thread): def __init__(self, infile, outfile): - threading.Thread.__init__(self) + threading.Thread.__init__(self) self.infile = infile self.outfile = outfile def run(self): @@ -358,11 +358,11 @@ results in decimal floating point and binary floating point. The difference becomes significant if the results are rounded to the nearest cent:: - >>> from decimal import * + >>> from decimal import * >>> Decimal('0.70') * Decimal('1.05') Decimal("0.7350") >>> .70 * 1.05 - 0.73499999999999999 + 0.73499999999999999 The :class:`Decimal` result keeps a trailing zero, automatically inferring four place significance from multiplicands with two place significance. Decimal @@ -380,7 +380,7 @@ >>> sum([Decimal('0.1')]*10) == Decimal('1.0') True >>> sum([0.1]*10) == 1.0 - False + False The :mod:`decimal` module provides arithmetic with as much precision as needed::
