Python Cookbook, Second Edition by Alex Martelli, Anna Martelli Ravenscroft & David Ascher This errata page lists errors outstanding in the most recent printing. If you have technical questions or error reports, you can send them to booktech@oreilly.com. Please specify the printing date of your copy. This page was updated March 12, 2007. Here's a key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem ?page-number?: reader question or request for clarification Confirmed errors: (599) code snippet; for token in tokenize.generate_tokens(text.readline): ^^^^^ # unpack ... toktype, toktext, ... = token (*) ^^^^^ This variable token collides module "token". AUTHOR: The simple fix is just to rename this variable to anything else (such as 'tok') in both the for statement and the assignment statement (there are no other uses of this variable; following occurrences of identifier 'token' refer to the module of that name). {798} Microsoft index entries; Not really a mistake, just an index inconsistency for similar items with more than one name: For Microsoft Access, there is the index entry: "Microsoft Access (see Access)" and the "Access" entry has the page details. Alternatively: The "Microsoft Excel" entry has the page details, and the "Excel (See Microsoft Excel)" refers to it. Another alternative: The "Microsoft Outlook" entry has the page details, and so does the "Outlook" entry. Yet another alternative, the three entries: "Microsoft {Jet,ODBC standard,SQL Server}" have the page details but no corresponding entry without the Microsoft prefix. {805} Twisted Index entry; The index entry for "Twisted" references only page 356, but the word "Twisted" does not appear on page 356. It is instead the first word on Page 357. There are also references to Twisted on pages 486, 508-511, and 519-524 that are not in the index. {Back Cover} Last paragraph; "The book contains a foreword by Guido van Rossum, the creator of Python." The book contains an Introduction to Chapter 13 by Guido van Rossum.