Python Cookbook

Errata for Python Cookbook

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
PDF
Page 23
Second line of first in-line example.

The line rows_by_lfname = sorted(rows, key=lambda r: (r['lname','fname'])) gets an exception : KeyError: ('lname', 'fname'). I believe that it should read rows_by_lfname = sorted(rows, key=lambda r: (r['lname'], r['fname']))

Note from the Author or Editor:
Fixed in final book.

Colin McPhail  May 04, 2013 
PDF
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:
Still in print edition.

Nick Stevens  Mar 11, 2013