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 |
| PDF |
Page page 323 and 324
final paragraph |
final paragraph said add the r character, but the code did not exist r character, could you confirm which one is correct?
===============
we add the r character before the quotes to create a raw string, which makes
regexes easier to write:
===============
Regex: \d\d\d-\d\d-\d\d\d\d
Text: My other number is 6382-13-38420.
Matches: ***********
Note from the Author or Editor: Thanks for bringing this up. To fix this, the sentence saying "Note that we add the r character before the quotes to create a raw string, which makes regexes easier to write:" should be moved right after the sentence saying: "Let’s use Python’s built-in re module for matching this pattern:". So the final text should read:
"Let’s use Python’s built-in re module for matching this pattern. Note that we add the r character before the quotes to create a raw string, which makes regexes easier to write:"
|
Sophia |
Oct 17, 2025 |
|
| Printed |
Page 38
Type Annotations |
Duplicate "it" in the sentence below, looks like a typo:
"That means that _it_ in general it doesn't care..."
Should be "That means that in general it doesn't care..."
|
Irina |
Jul 06, 2019 |
|
| Printed |
Page 73
6th paragraph |
For instance, if you don't mind being angrily accused of... **the text after this is italicized and strangely formatted**
Note from the Author or Editor: formatting mistake, the hyperlink got formatted wrong
The URL https://www.nytimes.com/2014/06/30/technology/facebook-tinkers-with-users-emotions-in-news-feed-experiment-stirring-outcry.html should be hyperlinked to "experimenting on your users" and italics unnecessary, except for the word "causes"
|
Maximilian Rohde |
Sep 10, 2019 |
|
| ePub |
Page 83
first two function definitions |
def total(xs: list) -> float:
return sum(total)
I think this should be
def total(xs: list) -> float:
return sum(xs)
Likewise for
def total(xs: List[float]) -> float:
return sum(total)
The argument for sum() should be xs rather than total.
P.S. Wonderful book, seems aimed right where I am -- unless I am totally wrong above, in which case I have some prep work to do.
Note from the Author or Editor: the proposed fix (replacing "total" with "xs" in two places) is correct
|
Matthew |
May 18, 2019 |
|