Errata
Submit your own errata for this product.
The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Corrected".
The following errata were submitted by our customers and approved as valid errors by the author or editor.
Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question
| Version | Location | Description | Submitted By | Corrected |
|---|---|---|---|---|
| Printed | Page 49 Last bullet point, bottom of the page. |
The bullet point reads: "Subtract the second index from the first to work out how long the substring should be." It should read: "Subtract the first index from the second to work out ...." As an example of the error: If the substring were, s[10:25], then subtracting the second index from the first would produce a substring with a negative length (in this case, -15)! Note from the Author or Editor: |
Harvey | |
| Printed | Page 183 Third line of code from the top of the page. |
On p. 182, the format string we were to create appears thus: "%16s%07d%16s\n" % (credit_card, price * 100, description). On p. 183, however, we are told that the following is the string that we just created (the one that we're supposed to use in the code): "%s%07d%s\n" % (credit_card, price * 100, description). The second version is missing both instances of the sixteen-character padding formatting element. The result of this is that, in the transactions file, the description is not separated from the price by any spaces. Note from the Author or Editor: |
Harvey | |
| Printed | Page 194 ff Various places. |
The following error is one of inconsistency (but it's trivial). In chapter six the price of a latte is $2.0, until you get to p. 194. Beginning on p. 194, and for the rest of the chapter, the price of a latte is $2.20. |
Harvey | |
| Printed | Page 255 The "Python Tools" section |
In the "Python Tools" section appearing at the end of chapter seven, we are told that we covered Python's "break" statement. This is incorrect: the "break" statement is NOT covered in chapter seven. Note from the Author or Editor: |
Harvey | |
| Printed | Page 288 Bottom of the save_data() function |
Near the end of the save_data() function, the following line appears twice: description.delete(0, END). It should appear once, only. Note from the Author or Editor: |
Harvey | |
| Printed | Page 296 ff. All of Chapter Eight |
In my previous errata submission I pointed out the following typo: "Near the end of the save_data() function, the following line appears twice: description.delete(0, END). It should appear once, only." I have discovered that this typo is repeated in every occurrence of the "save_data()" function that appears in chapter eight. It occurs seven times. Note from the Author or Editor: |
Harvey | |
| Printed | Page 341 first column |
the first answer was talking about typos and there was actually a typo. “As using the word “from” makes a lot of sense when taking about a scale” (probably should be talking). If that was intentional, you got me… |
David Griffiths |
|
| Printed | Page 357 2nd para |
"checkoxes" should be "checkboxes" |
David Griffiths |
