G6

Errata for the First Printing of Teach Yourself Python in 24 Hours


  1. Page iv:  Appendixes should read Appendices
  2. Page xii:  Same:  Appendixes should read Appendices
  3. Page xiii:
    1. Line 4:  Should read engineer for a software security company
    2. Line 9:  Strike currently on Windows platforms
    3. Line 15: Callware should read Axent
    4. 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.
  4. 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)
  5. Page 1:  Line 5:  Hour 1 should read Hour 2
  6. Page 1:  Near the bottom:  attempt programming, and fail should read attempt programming and fail (no comma)
  7. Page 3:  The author’s email address should read ivanlan@pauahtun.org
  8. Page 16:  Question 2, Choice d:  Benjamin Charles E. Thompson, Jr. should read Charles E. Thompson, Jr.
  9. Page 19:  The chapter quote should read:
  10. Page 20:  Line 2 below note, the word batch should be italicized the first time it appears.
  11. Page 21:
    1. Line 5:  Appendix A should read http://www.python.org/
    2. 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
    3. Line 9:  refer to Appendix A should read see the Python Website
    4. Line -4 (Python-style indexing, remember;-):   insert a space between Tk 8.0 and and
    5. Line -3:  With Tcl/Tk 8.1 should read with Tcl/Tk 8.1 (lowercase with)
  12. Page 23:  PATH PATH%;c:  should read PATH %PATH%;c:
  13. Page 25:  In the first NEW TERM, Code are lines should read Code means lines
  14. Page 27:  Strike the phrase , as shown in Figure 2.6 since the icon does not appear in that Figure
  15. Page 28:  Insert / after both references to www.python.org. http://www.python.org/
  16. Page 30:   Insert / after the reference to www.python.org. http://www.python.org/
  17. Page 31:  formulas should read formulae
  18. Page 32:  In the note, important should read importantly
  19. Page 33:  Line -7:  In the preceding figure should read In that figure
  20. Page 43:  Line -10:  formulas should read formulae
  21. Page 44:  Line 2 after Rule 2:  formula is written should read formula were written
  22. 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
  23. Page 52:  The chapter quote should read:
  24. Page 54:  Near the bottom of the page, do something should be italicized
  25. Page 55:
    1. Lines 5 and 6:  use if as a variable name means should read use expressions in if statements means
    2. Paragraph 3, THEN should read BEGIN
    3. Listing after P. 3:  change THEN to BEGIN
  26. Page 58:  Italicize iterate in the NEW TERM
  27. Page 59:  In paragraphs -2 and -3, start, stop and step should be italicized
  28. Page 69:  The chapter quote should read:
  29. Page 70:  Paragraph 3, line 2: with in the next chapter, should read with in Hour 7,
  30. Page 72:  Listing 5.2, lines 1-9 should be indented one additional space (the downloadable source is correct)
  31. Page 80:  Question 1, choice d:  Scary and posh should read Scary and Posh
  32. Page 98:  Paragraph -3:  like this (see Figure 6.13).  should read like what you see in Figure 6.13.
  33. Page 108:  Line 3:  bash and ksh should be italicized
  34. Page 113:  Listing 7.1:  indent lines 2-4 an additional 4 spaces (the downloadable code is correct)
  35. Page 116:  Listing 7.7:  indent line 1 an additional space (the downloadable code is correct)
  36. Page 117:
  37. Page 118:  Listing 7.10, line -2:  main__ should read __main__
  38. Page 121:  Near the middle of the page, proleptic should be italicized at its first appearance
  39. Page 126:  Line 1 after the note:  In this chapter, I’ll discuss should read Also in this chapter, I’ll discuss
  40. Page 127:  Listing 8.1, eturn should read return
  41. Page 129:  Line -1:  Hour, should read Hour;  (comma replaced with semi-colon)
  42. Page 130:  talked about That way should read talked about. That way (missing period between about and That)
  43. Page 130:  Listing 8.6, return 0 should be dedented by four spaces
  44. Page 131:  increment in the text should be monospaced
  45. Page 132:  Parenthetical comment should read (grave accents, or, informally,...)
  46. 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()
  47. 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
  48. Page 137:  Last row of table 8.3 should be f.writelines(list), not f.write(list)
  49. 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.
  50. Page 141:  Listing 8.18:  Lines 7-9 should be dedented one space
  51. Page 162:  Listing 10.1:  Lines 2-12 should be indented four additional spaces
  52. Page 167:  Paragraph -1:  __str__() and __repr__() should NOT be italicized and should be in monospaced font
  53. Page 170:  Near the bottom of the page, Listing 10.5 should read Listing 10.6, lines 6 and 7
  54. Page 174:  The answer to question number three should be b, not a
  55. 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.
  56. Page 177:  Last line, our class, see Listing 11.3 should read our class:  see Listing 11.3
  57. Page 178:  Last line of paragraph 2:  in Class now exposes, the now should be monospaced
  58. Page 179:  In paragraph 1, docstring should be italicized, not monospaced
  59. Page 179:  Paragraph -1, line 2.  storetime() is not capitalized.
  60. Page 179:  Paragraph -1, line -6:  self.t modulo 86400 should read self.t % 86400
  61. Page 183:  Paragraph 1, line 3:  __main__ should not be italicized
  62. Page 186:  List item 2:  module, namespace should simply be module namespace
  63. Page 198:  Listing 12.5:  Line 27 should be numbered and aligned with line 26
  64. Page 200:  Answer to Question 3:  vigorously should be rigorously
  65. Page 201:  Answer 1 should be c, not a
  66. Page 203:  Line 2:  classes that have underscores should read classes that have double underscores
  67. Page 206:  Paragraph 2 line 1:  Hour 15 should read Hour 16
  68. Page 206:  Paragraph -1, line -2:  Self should be self (not capitalized)
  69. Page 207:  Paragraph -1, line 5:  Other should be other (not capitalized)
  70. 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
  71. Page 211:  if type(other) == type(rt): should read if isinstance(other,spam):
  72. Page 214:  Paragraph 2, line 1:  modifiable, or mutable; should read modifiable, or mutable, strings;
  73. Page 214:  Listing 13.5:  dedent lines 11 and 17 to match lines 10 and 16
  74. Page 216:  Paragraph 2, line 1:  74 should be 76
  75. Page 216:  Paragraph 2, line 2:  75 should be 77
  76. Page 217:  Paragraph 2, line 4:  __delattr_ should be __delattr__ (missing final underscore)
  77. Page 217:  Paragraph -2, line 3:  __gettattr__() should be __getattr__() (too many Ts spoil the coffee)
  78. Page 224:  Paragraph 2, line -3:  www.pauahtun.org/tools.html should read tools.html
  79. Page 225:  Paragraph -1:  shplat, suck, spit and squiggles should all be italicized
  80. Page 226:  First code example:  there should be a colon after pbang:
  81. Page 226:  Second code example:  program name should be program_name:
  82. Page 233:  Listing 14.3:  Lines 17-21 should be indented four spaces deeper than line 16
  83. Page 235:  Listing 14.4:  Lines 17-21 should be indented four spaces deeper than line 16
  84. Page 240:  Paragraph 1, line 3:  omit there are other meanings of recursive, but not ones we’ll use in this book
  85. Page 245:  Listing 15.4:  Line 10 should be indented an additional 4 spaces
  86. Page 245:  Listing 15.4:  Line 12 should be indented an additional 4 spaces
  87. Page 245:  Listing 15.4:  Lines 15-20 should be indented an additional 4 spaces
  88. Page 247:  Bullet item 2:  for should not be shown as keyword—ordinary font
  89. Page 280:  Paragraph 1, line -1:  search for i, by default should read search for is, by default
  90. Page 280:  Paragraph -1, line -3:  readme should be italicized
  91. Page 293:  Listing 17.1:  Indent lines 1-9 one additional space
  92. Page 300:  The Canvas Widget heading should appear after the line that reads backs for exactly what you need
  93. Page 314:  Paragraph 1, line 1:  box and also behaves should read box which also behaves
  94. Page 314:  Paragraph 2, line 1:  same:  Put should read same:  put
  95. Page 321:  Listing 19.1:  line 37 should be indented 2 additional spaces
  96. Page 332:  Paragraph 1, line -1:  which could be replaced should read which could have been replaced
  97. Page 339:  Listing 20.2:  remove extraneous not equal symbols in lines 60 and 61
  98. Page 341:  Remove extraneous not equal symbols in lambda code line and in paragraph 3
  99. Page 349:  Line -1:  sparse should read terse
  100. Page 350:  Paragraph 1, line -1:  italicize not
  101. Page 360:  Paragraph 2, line 1:  hold on to your hat should read hold on to your butts
  102. Page 379:  Answer 2:  Choice three is should read Choice c is
  103. Pages 382-383:  Listing 22.1:  Indent lines 28-53 an additional 4 spaces
  104. Page 384:  Paragraph -1, line -5:  SetupColormapn() should read SetupColormapn() (italicize n only)
  105. Page 388:  Paragraph 2, line 7:  italicize deltav
  106. Page 394:  Line 5:  random number generator of choice should read preferred random number generator
  107. Page 398:  Paragraph 2, line 5:  lifter() should appear in the same font as it does in line 1.
  108. Page 447:  Paragraph -1, line 2:  http://www.pauahtun.org should read http://www.pauahtun.org/
  109. Page 448:  Listing 24.2:  line 8:  mail.callware.com should read mail.pauahtun.org
  110. Page 448:  Listing 24.3:  Lines 9-11:  ivanlan@callware.com should read ivanlan@pauahtun.org
  111. Page 459:  Appendixes should read Appendices
  112. Page 465:  Paragraph 2, line 1:  italicize vi and quote “vee-aye”
  113. Page 465:  Paragraph 3, line 1:  italicize vim
  114. Page 466:  Paragraph 2, line 1:  italicize Emacs
  115. Page 466:  Paragraph 3, line 1:  quote “escape-meta-alt-control-shift”
  116. Page 467:  Paragraph -2, line 1:  italicize Xemacs
  117. Page 467:  Paragraph -1, line 1:  italicize Alpha
  118. 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.


Valid HTML 4.01 Transitional