Errata
The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted by | Date submitted |
---|---|---|---|---|
Printed | Page 41 last pargraph before and first few lines of Example 2-6 |
"Without -v, you receive an .lprof output ..." |
Gregory Sherman | Apr 30, 2021 |
Printed | Page 45 Example 2-9 |
The kernprof command and the first couple of lines output by the run are missing. |
Gregory Sherman | Apr 30, 2021 |
Printed | Page 55 both py-spy command lines |
$ sudo env "PATH=$PATH" py-spy --pid 15953 |
Gregory Sherman | May 01, 2021 |
Printed | Page 71 Second bullet point |
The statement that tuples are immutable should be qualified. Arguably, the content of tup = (5, [6]) can be changed, by doing tup[1].append(7). This has an important implication in terms of hashability. |
Anonymous | Aug 28, 2020 |
Printed | Page 88 Third sentence of "Hash Functions and Entropy" section |
"Tuples [...] have a hash value that is based on their contents." Not true, since not all tuples have a hash value. |
Anonymous | Aug 28, 2020 |
Printed | Page 88,90,92 dictionary sizes |
How can the following snippets all be correct? |
Gregory Sherman | May 03, 2021 |
Printed | Page 90 General note in the middle of the page |
"We first find the minimum number of buckets that tictionary must have to still be two-thirds full (N*(2/3+1))" |
Anonymous | Aug 28, 2020 |
Printed | Page 90 3rd paragraph |
Reads "... for a dictionary with four elements, the mask we use is 0b111. Thus the hash value for the number 5 is 5 & 0b111 = 5 ..." |
Jackson Smith | Jun 14, 2023 |
Printed | Page 126, 127 "list" functions, explanatory text |
"The difference in speed between the pure Python looping method and the list comprehension method shows the benefit of doing more calculations behind the scenes rather than explicitly in your Python code". |
Gregory Sherman | May 05, 2021 |
Printed | Page 132 last sentence |
" ... vectorization accounts for only about 13% of that 66.3x speedup." |
Gregory Sherman | May 06, 2021 |
Printed | Page 186 first 2 paragraphs |
The first 2 paragraphs appear to be largely redundant. |
Gregory Sherman | May 09, 2021 |
Printed | Page 264,265 bullet points & text |
" |
Gregory Sherman | Aug 02, 2021 |
Printed | Page 283 Figure 9-17 |
There are 4 methods listed in the box at the top left of the chart, but only 3 lines can be seen. This kind of problem is common with many line graphs in this book. It is often very difficult to figure out what a particular line means, as the lines do not differ enough in appearance as grayscale. |
Gregory Sherman | Aug 10, 2021 |