@@ -16,7 +16,7 @@ Output Formatting
1616The :mod: `repr ` module provides a version of :func: `repr ` customized for
1717abbreviated displays of large or deeply nested containers::
1818
19- >>> import repr
19+ >>> import repr
2020 >>> repr.repr(set('supercalifragilisticexpialidocious'))
2121 "set(['a', 'c', 'd', 'e', 'f', 'g', ...])"
2222
@@ -174,7 +174,7 @@ tasks in background while the main program continues to run::
174174
175175 class AsyncZip(threading.Thread):
176176 def __init__(self, infile, outfile):
177- threading.Thread.__init__(self)
177+ threading.Thread.__init__(self)
178178 self.infile = infile
179179 self.outfile = outfile
180180 def run(self):
@@ -198,9 +198,9 @@ variables, and semaphores.
198198While those tools are powerful, minor design errors can result in problems that
199199are difficult to reproduce. So, the preferred approach to task coordination is
200200to concentrate all access to a resource in a single thread and then use the
201- :mod: `queue ` module to feed that thread with requests from other threads.
202- Applications using :class: `Queue ` objects for inter-thread communication and
203- coordination are easier to design, more readable, and more reliable.
201+ :mod: `Queue ` module to feed that thread with requests from other threads.
202+ Applications using :class: `Queue.Queue ` objects for inter-thread communication
203+ and coordination are easier to design, more readable, and more reliable.
204204
205205
206206.. _tut-logging :
@@ -358,11 +358,11 @@ For example, calculating a 5% tax on a 70 cent phone charge gives different
358358results in decimal floating point and binary floating point. The difference
359359becomes significant if the results are rounded to the nearest cent::
360360
361- >>> from decimal import *
361+ >>> from decimal import *
362362 >>> Decimal('0.70') * Decimal('1.05')
363363 Decimal("0.7350")
364364 >>> .70 * 1.05
365- 0.73499999999999999
365+ 0.73499999999999999
366366
367367The :class: `Decimal ` result keeps a trailing zero, automatically inferring four
368368place significance from multiplicands with two place significance. Decimal
@@ -380,7 +380,7 @@ calculations and equality tests that are unsuitable for binary floating point::
380380 >>> sum([Decimal('0.1')]*10) == Decimal('1.0')
381381 True
382382 >>> sum([0.1]*10) == 1.0
383- False
383+ False
384384
385385The :mod: `decimal ` module provides arithmetic with as much precision as needed::
386386
0 commit comments