
Errata for the First Printing of Teach Yourself Python in 24 Hours
-
Page iv: Appendixes should read Appendices
-
Page xii: Same: Appendixes should read Appendices
-
Page xiii:
-
Line 4: Should read engineer for a software security company
-
Line 9: Strike currently on Windows platforms
-
Line 15: Callware should read Axent
-
Line 16: http://www.callware.com/
should read http://www.overstock.com/ (but Axent was bought by Symantec.);
voicemail
should read security software. Finally, is shoud read was.
-
Page xiv: The line that reads “Keep ‘em flying, Bill” should read
“Keep ’em flying, Bill”. That is, it should have the leading quote
replaced with an apostrophe (it should go the other way)
-
Page 1: Line 5: Hour 1 should read Hour 2
-
Page 1: Near the bottom: attempt programming, and fail
should read attempt programming and fail (no comma)
-
Page 3: The author’s email address should read ivanlan@pauahtun.org
-
Page 16: Question 2, Choice d: Benjamin Charles E. Thompson,
Jr. should read Charles E. Thompson, Jr.
-
Page 19: The chapter quote should read:
-
Calliopus then made a rare acquisition of crocodiles direct from Egypt,
but they suffered badly on the voyage and proved unsatisfactory in the
arena ... He had accepted a stray python that had been captured in a market
by the vigiles. —Lindsey Davis, in Two for the Lions
-
Page 20: Line 2 below note, the word batch should be italicized
the first time it appears.
-
Page 21:
-
Line 5: Appendix A should read http://www.python.org/
-
Line 8: we will use IDLE to edit and run programs throughout the
book should read we often use IDLE to edit and run programs in the
book
-
Line 9: refer to Appendix A should read see the Python
Website
-
Line -4 (Python-style indexing, remember;-): insert a space
between Tk 8.0 and and
-
Line -3: With Tcl/Tk 8.1 should read with Tcl/Tk 8.1 (lowercase
with)
-
Page 23: PATH PATH%;c: should read PATH %PATH%;c:
-
Page 25: In the first NEW TERM, Code are lines should
read Code means lines
-
Page 27: Strike the phrase , as shown in Figure 2.6 since
the icon does not appear in that Figure
-
Page 28: Insert / after both references to www.python.org.
http://www.python.org/
-
Page 30: Insert / after the reference to www.python.org.
http://www.python.org/
-
Page 31: formulas should read formulae
-
Page 32: In the note, important should read importantly
-
Page 33: Line -7: In the preceding figure should read
In
that figure
-
Page 43: Line -10: formulas should read formulae
-
Page 44: Line 2 after Rule 2: formula is written should
read formula were written
-
Page 45: Line 2 after Figure 3.17: When you use ceil() gives
you 4 and -4 respectively should read When you use ceil(), Python
gives you 4 and -3 respectively
-
Page 52: The chapter quote should read:
-
There’s nothing you can put up in front of them that will discourage
them from going on. —Lynda
Plettner, talking about her dogs in the 1999 Iditarod
-
Page 54: Near the bottom of the page, do something should
be italicized
-
Page 55:
-
Lines 5 and 6: use if as a variable name means should read
use
expressions in if statements means
-
Paragraph 3, THEN should read BEGIN
-
Listing after P. 3: change THEN to BEGIN
-
Page 58: Italicize iterate in the NEW TERM
-
Page 59: In paragraphs -2 and -3, start, stop and step
should be italicized
-
Page 69: The chapter quote should read:
-
If you lose the spirit of repetition, your practice will become quite
difficult. —Shunryu Suzuki, Zen Mind, Beginner’s Mind
-
Page 70: Paragraph 3, line 2: with in the next chapter, should
read with in Hour 7,
-
Page 72: Listing 5.2, lines 1-9 should be indented one additional
space (the downloadable source is correct)
-
Page 80: Question 1, choice d: Scary and posh should
read Scary and Posh
-
Page 98: Paragraph -3: like this (see Figure 6.13).
should read like what you see in Figure 6.13.
-
Page 108: Line 3: bash and ksh should be italicized
-
Page 113: Listing 7.1: indent lines 2-4 an additional 4 spaces
(the downloadable code is correct)
-
Page 116: Listing 7.7: indent line 1 an additional space (the
downloadable code is correct)
-
Page 117:
-
Paragraph 2: import module should read import module
and (next line) from module should read from module
-
Page 118: Listing 7.10, line -2: main__ should read
__main__
-
Page 121: Near the middle of the page, proleptic should be
italicized at its first appearance
-
Page 126: Line 1 after the note: In this chapter, I’ll discuss
should read Also in this chapter, I’ll discuss
-
Page 127: Listing 8.1, eturn should read return
-
Page 129: Line -1: Hour, should read Hour;
(comma replaced with semi-colon)
-
Page 130: talked about That way should read talked about.
That way (missing period between about and That)
-
Page 130: Listing 8.6, return 0 should be dedented by four
spaces
-
Page 131: increment in the text should be monospaced
-
Page 132: Parenthetical comment should read (grave accents, or,
informally,...)
-
Page 132: Further down the page, You can also use the built-in
function repr() should read You can also use the built-in function
str()
-
Page 133: Line 2: Listing 8.9 is example should read
Listing
8.9 is an example. In paragraph 2, format specifications
should
be italicized
-
Page 137: Last row of table 8.3 should be f.writelines(list),
not f.write(list)
-
Page 137: Listing 8.12: if ’\n’ in t: should
read if t[-1:] == ’\n’: Likewise, if ’\r’
in t: should read if t[-1:] == ’\r’:.
Also make the same modification in Listings 8.14 and 8.16; and there is,
of course, a better way yet.
-
Page 141: Listing 8.18: Lines 7-9 should be dedented one space
-
Page 162: Listing 10.1: Lines 2-12 should be indented four
additional spaces
-
Page 167: Paragraph -1: __str__() and __repr__()
should NOT be italicized and should be in monospaced font
-
Page 170: Near the bottom of the page, Listing 10.5 should
read Listing 10.6, lines 6 and 7
-
Page 174: The answer to question number three should be b,
not a
-
Page 174: Exercise -2: After faint of heart add: And
at http://comp.uark.edu/~sboss/hellno.htm,
you will find a version of the famous speech. It doesn’t match my
recollection, but then, hardly anything does.
-
Page 177: Last line, our class, see Listing 11.3 should read
our class: see Listing 11.3
-
Page 178: Last line of paragraph 2: in Class now
exposes, the now should be monospaced
-
Page 179: In paragraph 1, docstring should be italicized,
not monospaced
-
Page 179: Paragraph -1, line 2. storetime() is not capitalized.
-
Page 179: Paragraph -1, line -6: self.t modulo 86400
should read self.t % 86400
-
Page 183: Paragraph 1, line 3: __main__ should
not be italicized
-
Page 186: List item 2: module, namespace should simply
be module namespace
-
Page 198: Listing 12.5: Line 27 should be numbered and aligned
with line 26
-
Page 200: Answer to Question 3: vigorously should be
rigorously
-
Page 201: Answer 1 should be c, not a
-
Page 203: Line 2: classes that have underscores should
read classes that have double underscores
-
Page 206: Paragraph 2 line 1: Hour 15 should read Hour
16
-
Page 206: Paragraph -1, line -2: Self should be self
(not capitalized)
-
Page 207: Paragraph -1, line 5: Other should be other
(not capitalized)
-
Page 208: Paragraph -1: a built-in function called del()
should read a built-in statement named del (and del should
be monospaced); note that __del__() really is a method
-
Page 211: if type(other) == type(rt): should read
if isinstance(other,spam):
-
Page 214: Paragraph 2, line 1: modifiable, or mutable;
should read modifiable, or mutable, strings;
-
Page 214: Listing 13.5: dedent lines 11 and 17 to match lines
10 and 16
-
Page 216: Paragraph 2, line 1: 74 should be 76
-
Page 216: Paragraph 2, line 2: 75 should be 77
-
Page 217: Paragraph 2, line 4: __delattr_ should be
__delattr__ (missing final underscore)
-
Page 217: Paragraph -2, line 3: __gettattr__() should
be __getattr__() (too many Ts spoil the coffee)
-
Page 224: Paragraph 2, line -3: www.pauahtun.org/tools.html
should read tools.html
-
Page 225: Paragraph -1: shplat, suck, spit
and squiggles should all be italicized
-
Page 226: First code example: there should be a colon after
pbang:
-
Page 226: Second code example: program name should be
program_name:
-
Page 233: Listing 14.3: Lines 17-21 should be indented four
spaces deeper than line 16
-
Page 235: Listing 14.4: Lines 17-21 should be indented four
spaces deeper than line 16
-
Page 240: Paragraph 1, line 3: omit there are other meanings
of recursive, but not ones we’ll use in this book
-
Page 245: Listing 15.4: Line 10 should be indented an additional
4 spaces
-
Page 245: Listing 15.4: Line 12 should be indented an additional
4 spaces
-
Page 245: Listing 15.4: Lines 15-20 should be indented an additional
4 spaces
-
Page 247: Bullet item 2: for should not be shown as
keyword—ordinary font
-
Page 280: Paragraph 1, line -1: search for i, by default
should
read search for is, by default
-
Page 280: Paragraph -1, line -3: readme should be italicized
-
Page 293: Listing 17.1: Indent lines 1-9 one additional space
-
Page 300: The Canvas Widget heading should appear after the line
that reads backs for exactly what you need
-
Page 314: Paragraph 1, line 1: box and also behaves
should read box which also behaves
-
Page 314: Paragraph 2, line 1: same: Put should
read same: put
-
Page 321: Listing 19.1: line 37 should be indented 2 additional
spaces
-
Page 332: Paragraph 1, line -1: which could be replaced
should
read which could have been replaced
-
Page 339: Listing 20.2: remove extraneous not equal symbols
in lines 60 and 61
-
Page 341: Remove extraneous not equal symbols in lambda code line
and in paragraph 3
-
Page 349: Line -1: sparse should read terse
-
Page 350: Paragraph 1, line -1: italicize not
-
Page 360: Paragraph 2, line 1: hold on to your hat should
read hold on to your butts
-
Page 379: Answer 2: Choice three is should read Choice
c is
-
Pages 382-383: Listing 22.1: Indent lines 28-53 an additional
4 spaces
-
Page 384: Paragraph -1, line -5: SetupColormapn() should
read SetupColormapn() (italicize n only)
-
Page 388: Paragraph 2, line 7: italicize deltav
-
Page 394: Line 5: random number generator of choice
should read preferred random number generator
-
Page 398: Paragraph 2, line 5: lifter() should
appear in the same font as it does in line 1.
-
Page 447: Paragraph -1, line 2: http://www.pauahtun.org
should read http://www.pauahtun.org/
-
Page 448: Listing 24.2: line 8: mail.callware.com
should read mail.pauahtun.org
-
Page 448: Listing 24.3: Lines 9-11: ivanlan@callware.com
should read ivanlan@pauahtun.org
-
Page 459: Appendixes should read Appendices
-
Page 465: Paragraph 2, line 1: italicize vi and quote
“vee-aye”
-
Page 465: Paragraph 3, line 1: italicize vim
-
Page 466: Paragraph 2, line 1: italicize Emacs
-
Page 466: Paragraph 3, line 1: quote “escape-meta-alt-control-shift”
-
Page 467: Paragraph -2, line 1: italicize Xemacs
-
Page 467: Paragraph -1, line 1: italicize Alpha
-
Page 468: Paragraph 1, line 3: IDLE is not installed by
default should read IDLE is not always installed by default
Thanks to Andrew Kuchling, not only for more errata, but especially for
the errata erratum.
You can read Andrew’s review at
http://www.amk.ca/books/h/Teach_Yourself_Python.
While you’re there, you might also check out his review of Dave
Beazley’s Python
Essential Reference. Thanks, Andrew.