Errata
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 "Date 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 Note Update
Version | Location | Description | Submitted By | Date submitted | Date corrected |
---|---|---|---|---|---|
Printed, PDF | Page 3 code example of 2nd paragraph under Solution section |
>>> record = ('Dave', 'dave@example.com', '773-555-1212', '847-555-1212') Note from the Author or Editor: |
Mingway Huang | Oct 07, 2013 | Mar 07, 2014 |
Printed | Page 19 last example at botom of page |
This example "a.indices(len(s))" leads to output that differs from the output as printed in the book, assuming the slice a is the slice a as shown in the example just above. It would work in the way shown, if a were slice(5, 50, 2) or so. Or am I wrong? Note from the Author or Editor: |
Oli | Sep 27, 2013 | Mar 07, 2014 |
Page 23 Second line of first in-line example. |
The line Note from the Author or Editor: |
Colin McPhail | May 04, 2013 | May 08, 2013 | |
Printed | Page 28 In the "addresses" list of the example on the top half of the page. |
There is a comma missing following '2122 N CLARK' in the addresses list . As a result the output is incorrect. |
Doug Hill | Dec 12, 2013 | Mar 07, 2014 |
Page 39 2nd example |
missing "]" at the end of line Note from the Author or Editor: |
Aurelio Jargas | Nov 12, 2013 | Mar 07, 2014 | |
Page 57 middle of page |
Text says " All of these methods accept an optional &&65.180&&fill character as well. For example:" Note from the Author or Editor: |
dbeers | Aug 12, 2013 | Mar 07, 2014 | |
Page 67 1st example |
Missing ' in ('NUM', 10') Note from the Author or Editor: |
Aurelio Jargas | Nov 12, 2013 | Mar 07, 2014 | |
Page 71 middle of the page |
"on on" repeated words in ExpressionEvaluator class docstring |
Aurelio Jargas | Nov 12, 2013 | Mar 07, 2014 | |
Page 111 middle of the page |
The 2013 U.S. standard daylight saving time started in March 10, not March 13 as stated on the paragraph. The examples are correct, showing day 10. Note from the Author or Editor: |
Aurelio Jargas | Nov 12, 2013 | Mar 07, 2014 | |
Printed | Page 135 Item 4.14 |
I think that the recursive call should be Note from the Author or Editor: |
Anonymous | Sep 18, 2013 | Mar 07, 2014 |
Printed | Page 138 Second code example |
process_data(data) Note from the Author or Editor: |
Andy H | Feb 12, 2014 | Mar 07, 2014 |
Printed | Page 144 5.2 printing to a file |
wrong: |
Michael Poeltl | Sep 29, 2013 | Mar 07, 2014 |
Page 165 last paragraph |
There's an extra ) at the end of the last paragraph: |
Aurelio Jargas | Nov 12, 2013 | Mar 07, 2014 | |
Page 172 2nd example |
There's an extra period at the end of: import pickle. Note from the Author or Editor: |
Aurelio Jargas | Nov 12, 2013 | Mar 07, 2014 | |
Page 180 page bottom |
Missing comma after } at the end of 4th-to-last line: }, Note from the Author or Editor: |
Aurelio Jargas | Nov 12, 2013 | Mar 07, 2014 | |
Page 202 second code snippet |
In the definition of read_records, the return statement is redundent and technically wrong since the function intends to return a generator. Note from the Author or Editor: |
Binshuo Hu | Jan 05, 2014 | Mar 07, 2014 | |
Page 246 2nd example |
def __init__(self, address, family=AF_INET, type=SOCK_STREAM): Note from the Author or Editor: |
Aurelio Jargas | Nov 12, 2013 | Mar 07, 2014 | |
Page 253 code, last line |
Incorrect: Note from the Author or Editor: |
Aurelio Jargas | Nov 12, 2013 | Mar 07, 2014 | |
Page 262 last code |
Incorrect: @Person.getter Note from the Author or Editor: |
Aurelio Jargas | Nov 12, 2013 | Mar 07, 2014 | |
Printed | Page 284 10th line |
The line reading: |
Kirchmann,Gerhard | Jun 24, 2013 | Mar 07, 2014 |
Printed | Page 285 32nd line |
The line reading: Note from the Author or Editor: |
Kirchmann,Gerhard | Jun 24, 2013 | Mar 07, 2014 |
Page 293 Last paragraph, second to last line |
On page 293, last paragraph, second to last line the sentence 'By using setattr() to set the values...' breaks the 'setattr()' awkwardly, putting the 'se' on one line and 'tattr()' on the next line. Note from the Author or Editor: |
Nick Stevens | Mar 11, 2013 | Mar 07, 2014 | |
Page 311 code |
"import types" is repeated in the code. Note from the Author or Editor: |
Aurelio Jargas | Nov 12, 2013 | Mar 07, 2014 | |
Printed | Page 410 6th line from the bottom |
import sys Note from the Author or Editor: |
Anonymous | Jan 31, 2015 | |
Page 580 middle of the page |
Incorrect: Note from the Author or Editor: |
Aurelio Jargas | Nov 12, 2013 | Mar 07, 2014 | |
Page 581 last example |
Incorrect: Note from the Author or Editor: |
Aurelio Jargas | Nov 12, 2013 | Mar 07, 2014 | |
Page 594 1st paragraph in topic Discussion |
Repeated words in the sentence: "the implementation of an an O(n**2) algorithm." Note from the Author or Editor: |
Aurelio Jargas | Nov 12, 2013 | Mar 07, 2014 | |
Page 597 code, first line |
Garbage after comment in the first line of the C code. Note from the Author or Editor: |
Aurelio Jargas | Nov 12, 2013 | Mar 07, 2014 |