Python Pocket Reference

Errata for Python Pocket Reference

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 "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, ePub, Mobi, Safari Books Online
Page 73
end of 2nd paragraph, new footnote

As an afterthought, I'd like to add a brief mention of nested sequence assignments: a rare and obscure extension, covered in Learning Python 5E (see its page 343). To clarify, ADD a footnote reference to the very end of page 73's 2nd paragraph: """ The last four ... (3.X)").* """ that references the following new footnote text at the bottom of page 73, where there seems to be ample space (if not, please advise; the font of the code in this is unimportant, as we're tight on space--use whatever is most compact): """ * Sequence assignment also allows a nested collection of values to be assigned to a nested sequence of targets: ((a,b),c)=([1,2],3). In Python 2.X only, this pattern may also be used for function header arguments. """

Mark Lutz
O'Reilly AuthorO'Reilly Blogger 
Mar 18, 2014 
Printed, PDF, ePub, Mobi, Safari Books Online
Page 92
end of 2nd paragraph

[Not an error, clarification only] The import algorithm on this page is deliberately abstract and sketchy, and fine as is. But gven that we have one line of space on this page, I'd like to add one more bit of detail. To clarify, CHANGE the very end of this paragraph from "order:", to the following, with "__pycache__" in filename/italics font: "order (where step 2 involves details omitted here, including the 3.2 __pycache__ subdirectory described earlier):"

Mark Lutz
O'Reilly AuthorO'Reilly Blogger 
Mar 01, 2014 
Printed, PDF, ePub, Mobi, Safari Books Online
Page 116
1st sentence of last paragraph

[Not an error, clarification only] This section uses relative numbers to refer back to the immediately-preceding two cases of new-style inheritance precedence. It works as is, but could be mildy confusing, because there are numbered items nested in these two unnumbered cases. To clarify, CHANGE: "Python runs at most one (for rule 1) or two (for rule 2) tree searches" to: "Python runs at most one (for instances) or two (for classes) tree searches"

Mark Lutz
O'Reilly AuthorO'Reilly Blogger 
Mar 01, 2014 
Printed, PDF, ePub, Mobi, Safari Books Online
Page 231
1st sentence under

[Not an error, clarification only] This sentence's parenthetical clause tersely describes shared global memory for threads. It's accurate as is given that interpreter internals covers all memory spaces, but could more explicitly allude to shared object memory--a key component of thread communication. To clarify, CHANGE: "(i.e., lexical scopes and interpreter internals)" to: "(i.e., scopes, objects, and system internals)"

Mark Lutz
O'Reilly AuthorO'Reilly Blogger 
Mar 01, 2014