- ISBN13: 978-1-59059-982-2
- ISBN10: 1-59059-982-9
- 688 pp.
- Published Sep 2008
- Print Book Price: $44.99
- eBook Price: $31.49
Errata Submission
If you think that you've found an error in Beginning Python: From Novice to Professional, Second Edition, please let us know about it. You will find any confirmed erratum below, so you can check if your concern has already been addressed.
Errata
| Issue | Author's Response |
|---|---|
| Chapter: 5 Page: 87 In the note about the new unpacking feature of Python 3 "a, b, rest* = [1,2,3,4]" doesn't work. I discovered that it should be "a, b, *rest = [1,2,3,4]". |
You are correct. It should be *rest, with the same syntax as for method arguments. |
| Ch 1, p9, ln 1: "different" is misspelled. | Thanks for pointing that out. |
| eBook version, Chapter 1, page 1, line 4: "...I'll go through the basics, startwing with..." should be "...I'll go through the basics, starting with..." |
This is, of course, quite correct. |
| In the def of substitution the line if result is None: match.group(0) should be if result is None: result = match.group(0) so that match.group(0) is actually returned. see pages 410 and listing 20-4 on page 418. |
You are correct. |
| Chapter 16, Page 356, on the "Tip" box. startUp isn't the correct method. The correct one is setUp. |
You are correct. |
| Chapter 16, Page 356 "If you define methods called startUp and tearDown" should be "If you define methods called setUp and tearDown" |
You are correct. |
| Chapter 9 Page 191 Example at the end of the page I belive that method __getattr__ should handle all the name of local dict. |
Not sure if I understand what you mean, but __getattr__ (as opposed to __getattribute__) is only called if a given attribute is not found in __dict__ (or inherited from the class etc.), so __getattr__ need not handle attributes that already exist in the object. |
| Chapter 5, Page 90. >>> x = [1, 2, 3] >>> y = [2, 4] >>> x is not y True >>> del x[2] >>> y[1] = 1 >>> y.reverse() ... ... >>> x == y True >>> x is y True Shouldn't this be >>> x == y True >>> x is y False |
It seems you're talking about the first edition. You are correct, and this is resolved in the second edition. |
