Porting to Python 3 - The Book Site

Errata

Errors in spelling and grammar is not included in this list. Page numbers refer to the print edition.

Errata for the second edition, Revision 1.0

Section 3.2, Page 21:

The second example should say:

>>> 5/2
2.5

Errata for the first edition

Section 3.2, Page 21:

The second example should say:

>>> 5/2
2.5

Section 3.5.1, Page 27:

The bug fix for total_ordering in Python 3.2 only solved some of the cases. It’s still broken and can still in some cases cause infinite recursion. There is a bug report for this.

Section 6.7, Page 65:

Although the term “Generator comprehension” was used in the beginning of the discussion of the feature, it was deemed confusing and that terminology was replaced by the term “Generator expression”.

Also, generator expressions have been around since Python 2.4 not 2.6.